Can you explain this hashtable?
Hi,I understand the basic principle of powershell hashtables but there are elements of this one that I was hoping you can explain;@{name="MemberOf";expression={$_.memberof -join "`n"}}I don’t...
View ArticleSwitch parameter, Change/Set words
In my script, I extract a word in 3rd position, from a path.I then need to insert this word in a text, such asAdd-Content -Path $sFullPath -Value "NFSettingFile=C:\NG_auto_project\config\$word.ini"BUT...
View ArticleRestore Database Using SMO - Get status and errors
Hello,I am trying to create a Powershell (v4) script to restore a database to a SQL Server 2012 Instance. I am able to get the database to restore, but i have some complications. If i use the...
View ArticleHow to add user to multiple groups from .csv
Hi All,I have tried researching previous posts, but didn't find anything in relation to adding users to multiple groups from .CSV file import. I have been able to get the below script to work on...
View ArticleAdding Users to AD in Bulk From CSV File
I am trying to write a script that will add users from a csv file and then add them to a group. I am currently testing with just one user at the is time. The csv file has the following headers...
View Articlecompare variable to object in array
Helloi am trying to get my script working but i am having some problem.I have a script that allows me to enter a string in a popup window. What i am trying to do is to get that string that has been...
View ArticleCitrix XenDesktop Automation with PowerShell Part 2: VM Template with 1 Click
If you are beginning with a XenDesktop deployment on Hyper-V and need a Windows Image to be used as a template, this script will help automate its creation.Read More
View Articlebest way to Copy file on a remote computer
This should be simple, but i'm new to PS. What is the best way to copy files on a remote computer? I will be running the script from ComputerA, and it will copy a File from C:\FolderA to C:\FolderB,...
View ArticleWindows PowerShell Operators
As you advance in your PowerShell understanding and knowledge, it's inevitable you're going to run into a number of core computer programming concepts. Operators are one of these core programming...
View ArticleIs native Windows PowerShell support coming to Visual Studio?
Not completely yet. But, the Visual Studio 2013 Update 2 RC release seems to be a step in that direction. This update includes PowerShell syntax highlighting in the Visual Studio Editor.Read More
View ArticlePlay by Play: Discovering PowerShell with Mark Minasi
Windows Server guru Mark Minasi shows how to learn PowerShell from PowerShell, using the built-in intelligent features and help commands.Read More
View ArticleChef Delivers DevOps Automation for Windows and Microsoft Azure
From the Microsoft Build Conference, Chef™, the leader in web-scale IT automation, today announced new....Read More
View Articleadd-type fails to load an assembly, but why?
I am trying to call method Path.GetFileNameWithoutExtension ( ie - [Path]::GetFileNameWithoutExtension( ... ) ).However, Powershell reports that the assembly containing the type is not loaded: 'Unable...
View ArticleWindows Management Framework 5.0 Preview Introduces PowerShell 5.0
As if you needed more to this month with Patch Tuesday imminent, Windows XP and Office 2003 expiring, and Windows 8.1 Update 1 and Windows Server 2012 R2 Update on the way, Microsoft has made available...
View ArticleWinRT and PowerShell Part 1
This is a post about using Windows Runtime (WinRT) components “projections” from PowerShell.Read More
View ArticleAnalyzing the "Power Worm" PowerShell-based Malware
Analyzing the "Power Worm" PowerShell-based Malware On March 27, 2014, Trend Micro revealed the so called “Power Worm” PowerShell-based malware that is actively being used in the wild. With so few...
View ArticleHow to get all applications listed in add/remove programs or programs and...
Hello,I have been looking for a way to get the list of all applications in add/remove programs or programs and features. The problem is that the Get-WmiObject -class Win32_Product just returns some of...
View ArticlePrinterobjects and Array output
Hi there,I'm reaching out to you because I need some help to finish my script. I hope you can point me into the right direction.It's one thing to execute the command on the console, but another thing...
View ArticleShared Printer and its associated machines
Hi I would like to run a powershell script that looks at a specific shared network printer in AD and returns a list of all PCs\laptops that are attached to it in the form of a CSV file. Is this...
View ArticleReport on selected AD users with groups for each user
Hi everyone, I'm new-ish to PowerShell, but have been more recently made aware of it's prowess so i'm going to start using it more! ;)Let me set the scene; our AD structure is arranged so that users...
View Article