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

How to Manage Microsoft Azure SQL Database Using PowerShell with REST APIs

In our previous article published on this forum, we have presented a somewhat unorthodox (from the perspective of a typical DBA or IT Pro - but certainly not that of a developer) method of managing...

View Article


emailed notifications

I opted to receive email notifications when a thread I commented on or created gets a new comment.  However, I did not expect to receive email notifications for comments that I had made.  I don't...

View Article


Changing pagefile on Server 2012 from default to specific size and place.

I am trying to change the pagefile on my new servers from Automatically manage paging file size for all drives to Custom - C: drive Initial size 4096 and Maximum size 4096 If I can, I would like to be...

View Article

Image may be NSFW.
Clik here to view.

IE not visible from scheduled PS script

Hi all,I'm trying to create a PS logon script that will listen to a serial port, pass on the data to its original application, parse the data, and use the result to open an internal server and display...

View Article

change windows service "log on as" to user account. NO! Slow WMI, bad boy.

get-module |Select -expandedproperty exportedcommands |?{$_ -notlike "Get-WmiObject" -AND ($_ | gm -membertype method -name change) -ne $null} I need this command to return a cmdlet that will change...

View Article


Help with CSV Output

I am trying to cobble together a script to compare two CSV files and output the difference to a third CSV.  So far it does show me the difference between the two files, but my Output file is not in the...

View Article

Trying to create script which allows user to specify target PC then accepts...

I'm trying to build a simple script.1. Allow user to name a target PC2. Perform registry key deletion on target If  I run the following strings individually I achieve my objective.1. $name = Read-Host...

View Article

Using Powershell to clean up Stale Computers

Basically what I want is all of the computers that have not authenticated in the last 30 days in a specific OU.  This following command works but is not exactly what I...

View Article


The PowerShell File Frontier, Part 2: File Length

In my previous lesson we looked at a way to copy files between computers. Although you could just as easily copy to a different local location or use Move-Item which will copy and then delete the file....

View Article


The PowerShell File Frontier, Part 1

In my day-to-day work, I use a variety of cloud based services to keep a variety of folders synchronized between the different computers I use. But occasionally I need to grab some files from a...

View Article

PowerShell - WMF 5.0 July preview uninstallation fails

Fortunately, the PowerShell Team is already aware of this issue and documented this behavior....Read More 

View Article

Configuring IIS Prerequisites for the App-V 5 Server with PowerShell

While I’d much rather recommend that you configure a Windows Server that will host the App-V 5.0 server components via a solution such as MDT with the required IIS components enabled in an automated...

View Article

Unearth the Windows Experience Index in Windows 8.1 with PowerShell

Greg Shultz demonstrates how to use the RunWinSAT batch file and the DisplayWinSAT PowerShell script to display your Windows 8.1 system's Windows Experience Index scores.Read More                    

View Article


Backup MSSQL databases and verify backups

Hello all, i have a simple script that backups all none system DBs on instance which works fine.I want to add something like mssql "verify-only" to check if backups are OK.Bellow is the script that i...

View Article

Auditing mapped drives on a network by OU

Similar to this post in 2012: http://powershell.com/cs/forums/p/9777/16289.aspxI'm looking for a powershell script that will let me all the machines in an OU on my network and see what drives they have...

View Article


Display output in HTML

Hello Guys,Am new to powershell, i have the below script to find the directory space. My requirement: 1. I need to display the output (diskspace in GB) in a HTML format.2. The HTML will display the...

View Article

Windows Management Framework 5.0 (September 2014) preview is available for...

An updated version of WMF 5.0 preview is now available with a great set of enhancements and new features. Some of these changes are:Read More

View Article


Friday Fun: Creating PowerShell Scripts with PowerShell

Sometimes PowerShell really does seem like magic. Especially when you can use it to handle complicated or tedious tasks, such as creating a PowerShell script. I know many an IT Pro who want to script...

View Article

Image may be NSFW.
Clik here to view.

How can i use Get-Focus or Get-Window in powershell 2.0

Dear All,Hope you all are fine.This is my first post on Powershell.com Question:>>  How can I use Get-Focus or Get-Window in powershell 2.0.I am trying to get the total uptime of a process during...

View Article

Set DeviceAccessState from Allowed to Blocked

Hello,when a customer connects his mobíle device to our Exchange (Version: 14.02.0283.003), the mobile device is quarantined till an admin allows the connection. When the admin wants to delete the...

View Article
Browsing all 6937 articles
Browse latest View live