Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

PowerShell for Windows Admins

There’s an announcement from the team producing PowerShell help that most of the help for PowerShell 4.0/Windows 8.1/Windows 2012 R2 is complete.You can see the latest versions of the help files...

View Article


Image may be NSFW.
Clik here to view.

SCOM 2012 R2 – New PowerShell Cmdlets

I like to play around with PowerShell and I am always looking for new cmdlets Microsoft creates for us. Isn’t it like getting Christmas gifts all the time ? Today I wanted to find out if there are any...

View Article


Quick Tip: Create an easily accessible PowerShell 3.0 Help system

If you are using or are just beginning to use PowerShell, chances are that you've been on a few Google expeditions to learn how to use the various commands available in PowerShell. While that is all...

View Article

Notify DisplayName Change and Email it

All,I am working on a Script which will have to notify if DisplayName is changed.Below is the steps that i want my script to be doing.1.       We are maintaining a BaseFile which will store the...

View Article

Creating seperate txt files for each row retrieved from SQL statement

Hello This is my first post. I am pretty new to Powershell and wondered if anybody can help!. I have this code which needs to write each row from the SQL query to a serperate txt file. The problem I...

View Article


PowerShell – List Local or Remote Programs with an Exclusion List of Programs

This post is to list all the software installed on your local or remote machines. The exclusion list is an array item which holds the programs  that you wanted to exclude it from displaying in an...

View Article

Use PowerShell to get AD schema information

Sometimes when I engage in FIM 2010 or Active Directory projects, I get the question: "Okay, then which attributes do we actually have in our Active Directory then?". It is a fair question and often...

View Article

PowerShell Tools for Visual Studio

PowerShell Tools for Visual Studio adds language support for PowerShell in Visual Studio 2012 and 2013 RC. This tool is currently in beta.Read More

View Article


Running SharePoint PowerShell scripts as part of a Visual Studio post build...

Today I had to create a powershell script that make some changes to SharePoint as part of the post-build command line in Visual Studio. Long story short, I kept getting issues where the PowerShell...

View Article


Powershell with Other Programming Languages

I'm currently an aspiring programmer and it's safe to say I'm a novice at best. I've only been teaching myself powershell commands for maybe four or five weeks now, with the end goal of learning...

View Article

How to Lock Down a Remote PowerShell with a Constrained Endpoint

When considering whether to allow PowerShell to run on servers, security has been a concern for some system administrators. Despite its powerful and wide-reaching feature set, PowerShell was designed...

View Article

How to get what users are logged into a list of computers?

Hello everyone. I am pretty new to PS scripting, but this is an awesome tool! I have had alot of luck with gathering information from scripts that I have found and manipulated to perform the tasks that...

View Article

Output formatting with nested hashtable

If I do the following:$var= @{}for ($i= 1;$i-le 5;$i++) {$var[$i] = @{One='';Two='';Three=''}$var[$i].One="One$i"$var[$i].Two="Two$i"$var[$i].Three="Three$i"} $var will output:Name...

View Article


Can PS have a display message while code runs?

In PowerShell is there a way to run a script and have some type of dialog present saying "Script is running, please wait." ??  I am running a script in PowerShell ISE and the only indication I see that...

View Article

Search file for specific text and if found write a number into a variable

I know that this is probably really easy but I am drawing a blank on how to accomplish it.  Here is what I have:$dir = "\\BHC\D$\PDX\Logs\Threshold Manager_*_*.log"$latest = Get-ChildItem -Path $dir |...

View Article


How do i create code which allows me to see the the backup age of a file,

HI, i work with a computer protection business who wants to set up a system where if someone does not backup ther computerin the last seven days that the program will read it and send them an email....

View Article

Problem with Invoke-Command -ScriptBlock option

Hi Guys,Senerio: Computer A: The computer have share called \\computerA\SID\ which have a file named Pass.txt shared to everyone read access. Computer B: This computer is the target.What i am doing:i...

View Article


Enable Logon As Batch Privilege

I need to add the group Administrators to Enable Logon as Batch Privilege in Local Security Policy via Powershell, but am not having any luck so far researching it.  Best I can find anywhere - or at...

View Article

Why is there no "USB001" printer port?

Am trying to add several printers.  Have done so with success for any printers on the LPT1 port using (for example) -$printerclass = [wmiclass]'Win32_Printer'$printer =...

View Article

How to Lock Down a Remote PowerShell with a Constrained Endpoint

How can I use constrained endpoints to lock down remote PowerShell access?Read More

View Article
Browsing all 8583 articles
Browse latest View live