-
Recent Posts
Categories
- App-V (2)
- Applications (6)
- Azure (1)
- Hyper-V (1)
- ManageEngine (2)
- Office (1)
- Powershell (24)
- SCCM (20)
- Server 2012 R2 (2)
- SQL (3)
- Uncategorized (3)
- Windows 10 (5)
- Windows 7 (13)
- Windows 8 (15)
- Windows XP (1)
Recent Comments
- admin on PowerShell and Windows Forms
- Kou on PowerShell and Windows Forms
- Jacob Moritz on Configure two tier PKI hierarchy
- Dakota Brooks on Remove characters from file names with PowerShell
- Powershell new object system windows forms form on PowerShell and Windows Forms
Archives
- September 2018
- May 2017
- October 2016
- September 2016
- August 2016
- July 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- October 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- September 2013
- July 2013
- April 2013
- March 2013
- January 2013
- December 2012
- November 2012
- October 2012
Meta
-
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
Category Archives: Powershell
Download a file with PowerShell
Sometimes you might need to download a file with PowerShell from a FTP-server or from a website. For instance, you might need a file from HR that contains new users that should be created in the local Active Directory. In … Continue reading
PowerShell Variables
Variables in PowerShell is used in almost every script, if not all of them. Variables allows us to save information that we can use later on in our script. To save a value in a variable, we simply type: $Number = … Continue reading
PowerShell Guides
For a long time I was writing all my scripts in VB, something that at the time was powerful, and still is in certain areas. Long after PowerShell was introduced I still wrote most of my scripts in VB, thinking … Continue reading
How can I get the membership rules on all collections in a folder (Powershell)?
A few weeks back I was tasked with the enormous task of checking that all device-collections that were associated with an application were linked to a group in the Active Directory and that direct membership wasn’t used. If this had been … Continue reading
Posted in Powershell, SCCM
Tagged collection, device collection, direct membership, membership, membership rules, rules, SCCM 2012. powershell
4 Comments
Create and use a PowerShell console file
When writing scripts, sooner or later you will realize that you add the same snap ins all over again in different scripts. What you can do in this case is to export all loaded PowerShell snap ins from a console … Continue reading
Posted in Powershell
Tagged -PSConsoleFile, Console, Console File, Export-Console, Powershell, Snap In
2 Comments
Read XML-file in PowerShell
Today I will show you how to read a XML-file, something with endless possibilities. An example is if you have a file that contains information about users and you need to create new accounts in the Active Directory.
Query SQL database from PowerShell
I’ve been working on a larger script where I needed to query a database to see if a value was present or not, something I thought was pretty much straight forward. However, this turned out to be a bit harder … Continue reading
Install SQL Server PowerShell Module (SQLPS)
When installing SQL server, the PowerShell modules are installed by default, but if you wan’t to run scripts or commands from a computer/server that hasn’t got an installation of SQL, you need to install these manually.