Quantcast
Browsing all 21975 articles
Browse latest View live

AD User - Update inheritable persmission

We are currently migrating our users from Exchange 2003 to Exchange 2010. In our Exchange 2003 environment on the AD user properties > security tab > advanced ‘allow inheritable permissions from...

View Article


PS don't send email when folder is empty

Hello All,How can i achive in PS script something like this:My script parse csv files from path C:\script\*.csv, and after that send email.But if folder is empty script send to me empty email to. how...

View Article


Powershell logs

Are there any logs where I can identify commands executed on Power shell window. For example if a team member changes a setting on central admin using powershell, I would like to verify the user...

View Article

syntax errors before running power shell

Is there a way that we get compile time errors before actually running the script in powershelSQL Server is kind enough to provide us Parse option in SSMS to get the errors before actually running the...

View Article

How to add an exclude to this script I'm using

Hello,I'm using the following script to parse out data from an input file.  It's a list of computers that will be moved in our Hyper-V environment to their respective hosts.I want to add an exclude...

View Article


Get groupmembers of groups in AD

I need to get the member of groups, When i see the properties of a group in AD, there are two tabs, one is Members and other one is MemberOf. I want the information their in MemberOf tab for a...

View Article

New-PSdrive fails in script, works at command line

If I RDP to ServerA (2008R2) as userB (Domain User) and open a PS (2.0) command window, I can successfully run:New-PSdrive -Name "X" -PSProvider FileSystem -Root "\\MYSERVER\MyShare"But if I RDP to...

View Article

Enable-WSManCredSSP do not configure policy for delegation

Hello, Enable-WSManCredSSP in client role on Windows 8.1 client (have tried two) didn't sets the Windows CredSSP policy AllowFreshCredentials to WSMan/Delegate on the client, as it is described in...

View Article


Compare list of specific users to AD via Powershell

i have a list of 70-80 some odd users that i need to check for on AD if they have accounts or not.one of my co workers suggested i make a PS script to make the process easier than just going in and...

View Article


Script to find OU name and object name in AD

Hi , can any one help me on this, I need a script to find OU name along with object name in entire domain.Regards, Triyambak

View Article

Maintain AD via CSV import to change or Add users

Hi I'm very new to Powershell and i am looking to put together a script which uses a CSVfile to firstly check if an employee exists, if they exist then use set-aduser to update fields in AD from the...

View Article

Remote Exchange Powershell invoke command - customize return result

HiI am trying to create a powershell which connects to an exchange management shell and executes a command.[scriptblock]$Command = {Get-MailboxDatabaseCopyStatus | select Name,ContentIndexState}...

View Article

Specify Drive Letter and Disk size using Powershell

I am trying to create a simple volume on disk number 3 and assign a drive letter (g) and disk size (10GB).  The -AssignDriveLetter command won't take the G and the -Size command isn't taking the...

View Article


change user name on user login in file txt

Hello,i have user name in file txt and I want to have these accounts logins, but doesn't go to me.Can you help me please with this code?Best regards

View Article

How to use multiple classes in Powershell

Hi Everyone,i'm using following code to retrieve page file information, it gives the page file information but not computername. It says thatGet-WmiObject : Cannot validate argument on parameter...

View Article


new-partition but supress the dialog

hi, I want to initialize, partition, and format using PowerShell on windows Server 2012.The following 3 lines  works, BUT the new-partition step opens a dialog "You need to format the disk in drive G:...

View Article

need help expanding script to be more robust

  I need this script to process selective file types from a supplied folder(parm) and then after processing file move to archive folder and continue processing with a log of files processed. WHen I...

View Article


How to determine if a username is a group or a user in powershell

I am working on a script to add a SharePoint user policy for a claims based web application. The username has to be claims encoded, which differs for users accounts and groups. If the username is...

View Article

Table-Format help - output not expected

While I have been using Vbscript for a good while now I am new to Powershell.  I recently started a new job took over managing an in house written powershell tool.  Additionally, I am trying to...

View Article

Set-Acl fails in V3

I have a script that was working in V2 but fails in V3 when calling Set-Acl:Set-Acl : Cannot set the ACL because the method that it needs to invoke, SetSecurityDescriptor, does not existIs there a...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>