Download VHD from Windows Azure
Q: How can I download a virtual hard disk from Windows Azure?A: Downloading a virtual hard disk (VHD) from Windows Azure is very simple:Read More
View ArticleNutanix 4.0 PowerShell has Full Feature Coverage
One of the big new things for workflows and automation in Nutanix NOS 4.0 are the PowerShell cmdlets to interact with the Nutanix API’s. The POSH library covers the entire extent and functionality of...
View ArticlePowerShell is King – HP Scripting Tools for Windows PowerShell v1.1 is released
The 1.1 version supports PowerShell v3 and v4 and that means you can install it on Windows 8.1 and Windows Server 2012 R2. There is also some added CMDlets plus some minor changes.Read More
View ArticleHP's PowerShell CmdLets for ProLiant Servers
PowerShell is everywhere, and for administrators, it's one of the key pieces of new knowledge that must be obtained. Mark Minasi said it best at IT/Dev Connections 2013 when he simply said, "You must...
View ArticleMicrosoft Releases PowerShell Script Browser 1.0
Microsoft has released Script Browser 1.0, an add-in search tool that works with PowerShell's integrated scripting environment.Read More
View ArticleString manipulation - know what I need, but don't know how to get there....
I'm hoping someone can assist me; trying to audit who is stil using an old print server.I have got the output I need in a variable called $log that looks like this:Document 93, Test Page owned by USER1...
View ArticleMS-exchange script to extract mail-admin audit logs
BackgroundI'm using ms-exchange 2013 in my environment, and have a separate siem box which analyze logs produced by different systems (i.e exchange). The logs for exchange are internally stored and can...
View ArticleGetting list of Directory that contains *.tmp file
Hi hope someone can help me with writing a script.We have about 3700 Citrix profiles for (Citrix 4.5 farm) and we get lot of corrupt profiles. The way we tell if the profile is corrupt is by looking in...
View Articlebacking up event logs, then send to a choice of two central servers, based on...
Hello, here goes. I need a PS script to backup event logs of windows 2008R2 servers and Win7 clients. Once backed up, based on which site the host is in, send to the central server in that site. If...
View ArticleADgroupMember script
Hi Guys,I am learning powershell , This is basic script to display username, Displayname and title $group=Get-Content'D:\New folder\list.txt' Get-ADGroupMember -Identity$group|Where-Object {...
View ArticleIgnoring blank fields of csv file
Hi, I am new to powershell and I need some help if you are kind :)I have one script for adding users to my AD and I want to import a csv file. The script is working, but I want to add one user to more...
View Articleimport-csv with twist
Hi thereI have csv that looks like this:upn,emailvictort@test.corp,victor.test@test.com$importedusers = Import-CSV c:\scripts\users.csvforeach ($user in $importedusers)If I wanted to add some prefix...
View ArticleHow Do I [Split Replace RegEx]
I'm trying to modify or replace text in a string, which seems to me, it should be fairly east to do. But examples I've seen and read about appear to go off in other directions or end up with results...
View Articlehash tables square brackets and convertto-json
Hi usually I find I can work things like this out, but this one has had me turning circles for days :(I am sure the answer is pretty easy and something I have missed , but I have tried all types of...
View ArticleUse PowerShell to List RDS Sessions
Q: How can I use PowerShell to check all my Remote Desktop Services sessions?A: If you want to use PowerShell instead of qwinsta.exe to list your Remote Desktop Services (RDS) sessions, you can do so...
View ArticlePrompt for a password with a mask using Powershell
Here’s some code that I absolutely know I’m going to need again in the future, what better place to put it than on my blog!If you need to prompt the user for a password when using Powershell then you...
View ArticleTest-Path from a list
This should be fairly easy and i did similar with test connection. I have a list of home drives, that were established in AD.90% have this set but the folders do not exist. I used $Test = get-content...
View ArticleCheck for snapin
This should be an easy one for someone with more experience than me in this area. I am creating a process that requires some snapins:Add-PSSnapin SqlServerProviderSnapin100Add-PSSnapin...
View ArticleCreating a string from a get- command
I'm running this to get the primary SMTP address, I'm looping through a CSV that has a list of all the SamAccountNames that I'm modifying.$Primary=get-mailbox -Identity $_.SamAccountName |...
View ArticleNeed Help Passing Parameters
I have a script that accepts parameters, dynamically create and execute SQL commands to backup and restore Databases using a backup agent. My desire is to use this script file in conjunction withe the...
View Article