Backing up Hyper V VMs in PowerShell
I have researched this like crazy! And I can not get my script working to export VMs to a network location. Going through the GUI this works. I have no idea why this isn't working in my script. P.S. I...
View ArticleMoving computer to new OU
$Find = Get-ADComputer MG10011001Write-host $FindMove-ADObject $Find -TargetPath "OU=MGH_USERS,DC=Acme,DC=org" When I run the above code it completes without error but it does not move the machine....
View Articlefind out how many objects i have in a var and members?
Hi all, not sure my terminology is 100% correct here so please tell me if im wrong. Im hoping to create a dynamic script that will populate excel with the results of any query i run against sql.But im...
View ArticleReset Active Directory Users to Require Passwords
Q: I have some users who were configured in Active Directory to not require passwords. I need to reset their profiles to require passwords; how can I easily accomplish this?Read More
View ArticlePowerShell User Group in Omaha Nebraska!
That’s right! We now have a PowerShell Users group in Omaha, Nebraska. Jacob Benson (Blog | Twitter) and myself are kicking off the inaugural session on 29 July @ 6:30 PM at the Microsoft office. If...
View ArticleHow to manage your servers remotely with PowerShell
Windows servers, remote management and scripting: What ties all of these things together? Powershell. You can use PowerShell to manage a local machine and a remote machine as well. Using WinRM (Windows...
View ArticleRemotely Run PowerShell on a Cluster
Q: I'm trying to remotely run PowerShell commands on a node in a cluster, but the commands aren't working because of an authentication problem. Why?A: When a PowerShell command is executed on a remote...
View ArticleChange below code run in one attempt.
My code at the moments runs through the security permissions checks on a computer and places the results in a specified folder. But how do I change it from looking at one folder to looking at 10+...
View ArticleChange this code for better functionality
I would like to change the code below to running on multiple servers in one go so looping through all the servers and checking the permissions, then posting them to a central location on the same...
View ArticleGetting Domain Using SamAccountName
Hi,If I have a users SamAccountName how can I look up their domain? Once I get their domain I can return results in the format of <Domain>\<SamAccountName>I already have the PowerShell...
View ArticleIdentifying all Forests on the Network
Hi,Is there a way to return all the forests on your network? I need to be able get the collection of forests and then then get all domains on each forest for some automation that I am trying to...
View ArticleNeed assitance in getting value from registry
Hi All, Could anyone help me in assiting this code Req: I have text file with hotfix kb id and i would like to use to search in registry hive to get installed status by checking the value of...
View ArticlePowershell script to list file location with the longest file name in file...
Hi All,Can anyone here please share the Powershell script to list the file with longer than 100 characters length and its location in my File Server ?
View ArticleGetting users groupmemberships where the group SAM is *-dg
So as per the topic.I'm making a script to "pause" users that go on vacation but i'm having trouble in getting the users distributiongroups.I know i can use Get-Distributiongroup, but i don't want to...
View ArticleGet focus on .NET pop-up window
Hello AllI have written a nice little PS script that creates a series pop-up boxes (.NET) that prompts the user for keyed in information. I am using this method:[void]...
View ArticleHow can I import contacts into a mailbox and overwrite? Office 365
Hey guys, so I am new to powershell. I understand some of the basics and am still trying to teach myself as much as I can.So I have been asked to automatically push our company's contacts to everyone's...
View ArticlePowershell 3.0
Hey Guys. Kind of new here, but have been doing some coding (or attempting to). I've ran into a snag and not sure where to go from here. The below code does not output into my CSV file. I've tried...
View ArticleAzure Files service, First Take: SMB file sharing for cloud VMs
Summary: Cloud storage to use inside your cloud service: Azure Files represents another step towards blending the concepts of Platform and Infrastructure as a Service for a very pragmatic approach to...
View ArticleHow to get nice Logical Disk State View using PowerShell Grid Widget
Hi there after a long break. This time I’d like to share with you some nice example of using PowerShell Grid Widget.Read More
View ArticleFunction Junction: Running Functions with PowerShell Remote
One of the great things about remoting in PowerShell is that you can run a script on remote computers and the script doesn't have to be on the remote computer. The script can live locally and its...
View Article