Generate a password for a new AD account
Hello,I am trying to create a script that will create a valid UID after performing a check of AD and a File of previously used UIDs. If it finds a match then it would try the next number. Example Trys...
View ArticleAllow users to change their PW
Hello,I'd like to create a PS script that will allow our users to change their passwords. We don't want to use the 'change pw on next logon' because of other requirements that are enforced. We'd also...
View ArticleScriptProperty and scope issues
Hello all. I have what seems to be an odd problem to me. I'm noticing that if I return a PsObject from a function, the members that are ScriptProperties don't seem to hold their value outside of the...
View ArticleWrite Output to File and Schedule Script
Hello,I am brand new to PowerShell and need some help. I was able to execute the following script to export a list of all roles and features on my Windows Server 2008 R2 server: Import-Module...
View ArticlePowerShell COM Performance Improved in Windows Server Technical Preview
I was browsing some of my favorite blogs and came across a post by my buddy, David Stein. David writes the Skatterbrainz Blog and always provides some awesome, thoughtful, and frequently humorous...
View ArticleHow to copy an Active Directory user's group membership to another user's...
Hi, I am new to Powershell but have a requirement to copy the groups that one user is a member of to another user's Active directory account. Unfortunately we do not use and Quest Snap-ins due to...
View ArticleExchange 2013 Script to remove Resigned Users from all the DL's in organization
Hi,I am trying to write a script that will do the following tasks:1) Members of DL named "Resigned" to be removed from all the other DL's in the organization except DL "Resigned". 2) Later I need to...
View ArticleFinding files with the same info in them
I have a large number of files stored in a specific directory, there are 3 fields in these files that I need to do a few things withThese are the 3 fields in each fileSubject:From:HelloName:I am trying...
View ArticleUsing test-path to check for file existence in four network directories
I'm trying to test for the existence of a file in 4 unc paths. Using test-path I know how to check for the existence in one unc path as such:test-path \\networkshare\folder\file.txtHow would I go...
View Article(Get-ADGroupMember).name not working
I have an AD Group called SSOPilot. I want to find out all the users in this group. If I run this command it works. Get-ADGroupMember SSOPilot -Recursive but it returns far too much...
View ArticleAdd-ADGroupMember
$users = Get-Content "c:\tools\PILOTUsers.txt"foreach ($user in $users) { Add-ADGroupMember SSOPilot $users} I run this on a .TXT file that has many users in it. It says: Add-ADGroupMember : The...
View ArticleCopy-Item Protocol?
Hello Experts, Does anyone know exactly what Copy-Item uses for file transfers?
View ArticleRestart Server or Service with additional privileges
We are planning to reduce number of tickets to IT dept. for service & server restart requests - but, users don't have addtional access for production serverPlan is to share a common account which...
View ArticlePowershell and Hardware firmware version
Hello, I'm looking for a way to generate an output of the hardware firmware version of devices: NICILODisk Arraymotherboard etc....I assume using the Get-WmiObject will get me there but from there I am...
View ArticleThe Case for PowerShell
Mark Minasi teaches why you should Learn-PowerShell so you needn't Leave-Industry.Read More
View ArticleUpdating and changing AD user properties with powershell
Hey guys, This is my first time posting here. My powershell skills are beginner at best and I am trying to tackle a big project. I have been tasked to update the corporate phone directory for all of...
View ArticleGroups in Office365
Hello, I have a AD connect to office 365 with DirSync, perfectly synchronized(Users,Groups...).Also, inoffice365I createdgroupsdirectly from the platform (No connect with my domain) and when i try get...
View ArticleHow can I speed up my Powershell script for uninstalling SCOM agents?
Hello folks, I have a very simple script I use to bulk uninstall SCOM agents from a text file: $path=d:\temp\serverlist.txt$list=get-content$path$cred=Get-Credentialforeach($name...
View ArticlePassing Crentials to the below script
Hello Friends,Could you please help me with the below script?Below script works great but we have multiple domains no trust so i want to pass different credentials for different domnains.foreach...
View ArticleMicrosoft MVP Sean Kearney Walks Through Windows PowerShell Desired State...
Microsoft MVP Sean Kearney Walks Through Windows PowerShell Desired State Configuration Read More
View Article