Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Browsing all 8411 articles
Browse latest View live

Cannot add a new UPN-Suffix in a trusted domain/Forest with powershell

Hi everyoneI´m trying to add a new UPN suffix, in a different forest/domain than my multi tenant Exchange 2013 domain. There is a transitive trust between the two domains/forests. Import-Module...

View Article


Issues with copy/move script

Help would be appreciated.  I am trying to have a script that will copy to multiple locations, then move.  This script will be run every 5 minutes on multiple servers.  The script I wrote (I know is...

View Article


Need power shell script

Hello,Could you please provide power shell script to add SQL service account to below local policy groups:                Lock pages in memory                Perform volume maintenance tasksand set TCP...

View Article

set custom attribute15 valuse for all recipients in one DL

I need to set the custom attribute15 valuse as "Green" for all recipients in one Distribution list by powershell script. I am having exchange 2007 environment. some one can you help on this? 

View Article

A More Flexible Active Directory One-Liner

Last month, in "Going Further with ForEach," I showed you how to recast any Active Directory (AD) one-liner into a mildly more complex form based on the pipeline variable $_ and PowerShell's ForEach...

View Article


vSphere Power CLI 5.5 Improved in Release 2

The command-line automation and management tool for vSphere and vCloud adds a handful of new features, such as support for PowerShell 4.0 and IPv6, and improves on dozens more.Read More 

View Article

Files of the day

I need to check a network share for specific files and save the list unto a text file, BUT how do I ensure I only pick the files of the day? My scripts is as following:$DateStamp =...

View Article

Installation of Software's using SCCM from Service-Now

Trying to atomize the Installation of Software's using SCCM from Service-Now. written Powershell Scripts which run in the Firewall and connects to the SCCM Server. But we are getting the following...

View Article


Attaching LUNs in VMWare from NetApp SAN

Normal 0 false false false EN-AU X-NONE X-NONE MicrosoftInternetExplorer4Background:  I am trying to add an existing datastore to a VM from a NetApp San.  The datastore is a volume clone of a NetApp...

View Article


XAML applications closing without any error message

Since I started with XAML it often happens that the start of a XAML script closes the powershell console. It's the same with ISE. I'm using powershell 3 with Windows 7 Pro, SP1 and .NET 4.5.1Because I...

View Article

Group Policy Scripting

Hi,Excuse me for posting a GPO question in AD forum... It would seem the old forum is obsolete? I'm looking to automate GPO Deployement... There are many ways to Rome...When it comes to Domain Password...

View Article

Get-content (Joint path) problem

Hello,i am trying to write simple script which for some reason returns an error to me,here is the code that i have:param (    [string]$LogFile = (read-host "which file would you like to walk through"),...

View Article

Script to get mailbox size for users by department

I need assistant getting mailbox size for a group of users that belong to a specific department.  Does anyone know how to use the Department field as a parameter in a script.  Ideally I would like to...

View Article


Switching to the Minimal Server Interface

Q: How can I enable the Minimal Server Interface in Windows Server 2012? A: You can enable or disable the Minimal Server Interface through the GUI or from the command line using Windows PowerShell.Read...

View Article

Taking control of the start screen

The Windows 8 Start screen is a touch-based replacement for Windows’ old starter menu that is rich with features. It was created for use across the consumer and enterprise space – allowing users to...

View Article


Popular PowerShell Cmdlets for Windows Azure AD

Editor’s note: PowerShell is an object-oriented programming language and interactive command line for Microsoft Windows. It is designed with automation in mind, and remains an important element in...

View Article

Need some direction here

HiI am wondering how could I achieve this idea:I just finished cleaning items in deleted items folder older than 90 days.now I want to know if the items left are older than lets say 100 days but like...

View Article


The specified module "..." was not loaded

Hello,I want to manage iSCSI with Powershell cmdlets. But when I want to import-module MicrosoftiSCSITarget, it tells me:The specified module "MicrosoftiSCSITarget" was not loaded because no valid...

View Article

FInd users where initials is empty

HII would like to extract all users thaht don't have anything in the field intials? Get-ADUser -Filter * | where { $_.initials -eq " " } | Select-Object -Property SamAccountName,surnameu Thank you

View Article

SystemName Returning Blank.

I have been put in charge of finding the health and space available for the ShadowCopies that we have on our servers. In this script I use gwmi Win32_Volume | Select SystemName to find the name of the...

View Article
Browsing all 8411 articles
Browse latest View live