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

Logon GPO Analysis via Powershell

End-user happiness would decrease exponentially if your end-user had enough time to make a cup of joe while logging on.  Therefore, a crucial part of a good end-user experience is keeping logon times...

View Article


PowerShell Problem Solver: Use PowerShell to Find Non-System Service Accounts

A common task for many IT Pros is to keep tabs on service accounts. That is the say, the account that a service runs under. For the majority of services, this account is determined automatically and is...

View Article


Introducing the Add CredSSP to a PowerShell script (vROCmdlet) workflow

In this post we will take a look into a vROC that can help overcome CredSSP limitations introduced with the VMWare vRealize Orchestrator Plug-in for Microsoft Windows PowerShell. It give you an option...

View Article

Exploring PowerShell, Part 2: Learn the Commands Using Get-Help

Our next stop on our exploration of using PowerShell involves learning more about what Get-Help can do for you. When you are attempting to figure out a command might work or just need to see what some...

View Article

Get-Random

I was asked whether it is better to create an 8 digit random number using a maximum of 99999999 or 0-9 8 times and reassmbling the 8 digits.  The time is certaining shorter using 0-9 8 times but is it...

View Article


Manage Azure RemoteApp using PowerShell!

We’ve been waiting for this one! The Azure PowerShell team has just released version 0.8.15. This version contains a new module that allows managing Azure RemoteApp using PowerShell!Read More

View Article

Query AAD Using Graph API from PowerShell

One of my favourite things about PowerShell is discoverability, and how quickly you can use PowerShell to investigate and learn.  This post shows some snippets for using PowerShell to query the Azure...

View Article

Windows 8.1 'Change PC Settings' link won't work?

I'm running Windows 8.1. When I go to the Settings menu and then click on the 'Change PC Settings' link, nothing happens. It shows for a quick glimpse, but then disappears almost immediately after. I...

View Article


Wanting to compare 2 separate .csv files and ouput the differences to another...

I have two .csv lists, single column.  I want to read them both, compare them, and exportthe ones that do not have a match to another ,csv file.  Obviously one list has more data/records than the...

View Article


get index of installed hard drives and output in sorted list

Hi there this is my first post here because i cant find anywhere else an solution.I have to configure fresh server. Therefore i have to identify the installed drives and format the first one.Now i´m...

View Article

Invoke-RestMethod passing header values

I am trying to use Invoke-RestMethod cmdlet as i have a project to create VMs using API in our environment. API requires me to pass X-Auth-user and X-Auth-Password in the header field with my userid...

View Article

An operations error...

I finally have some 2008 r2 servers that I get to use the Active Directory module cmdlets on.  Strange thing though,  when I run Get-ADGroupMember on the Administrator group, I get this error:An...

View Article

Getting values in the registry

Hi allI am trying to write a script that will go through the SYSTEM\\CurrentControlSet\\Control\\Class reg key on remote computers to find the CLSID or GUID of the network card and based off of that...

View Article


Parsing @@Version output question

Hello,I am using Powershell 2.0 with SQL snapin loaded and trying to get the SQL server Version, version number and Edition.$ver = Invoke-Sqlcmd  -ServerInstance 'ServerName\InstanceName' -Query...

View Article

Compare folder list to AD user list

I'm trying to clean up our home folder shares and want to compare current users from AD with a folder list from the file server. I want to take each variable and compare line-by-line... so say line 1...

View Article


HTML Report

Hi I have this script . Now it goes to two connection(Filer) and get all information. Is there any way I can group by in report so both filers reports display separately on same page  Function...

View Article

Get local group members on servers issue with output.

HelloI'm trying to get are local group members on a server. It's working for the most part except the getting the group members.I'm gettting the following output for the...

View Article


SSAS Analysis Backup History Table Data insert

I need some script to insert data(Success Information/Failure Information) into a DB Engine Table if   $database.Backup("$directory_path\$database-$timestamp.abf") statement got executed...

View Article

Set-ADObject Cannot find an object

I have the following scripts its erroring out and I'm not sure why.Import-Module ActiveDirectoryimport-csv "c:\test scripts\output-Users3.csv" | % {Set-ADObject $_.saMAccountName -replace...

View Article

Windows 2008 Server Roles

Is there a powershell script that I can pull the server roles from my Windows 2008 Servers?  I am able to use the Get- WindowsFeature for my 2008R2 and 2012 

View Article
Browsing all 6937 articles
Browse latest View live