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

test-connection to format-table

HiI wonder why I do need to use other column headers when pipelining test-connection to format-table?...Using test-connection...test-connection 192.168.1.1Source    Destination   IPV4Address...

View Article


How to compare two text or csv files.

Hi Expert,I am stuck with my script. It gives me no error but i am not getting desired output.I have two files text file or csv file. It depends upon me which file i required i have both option my data...

View Article


Create GUI toolbar in PS and docking toolbar

Hi Guys,I have created a powershell script, that is a Toolbar with quick links to programs and to run admin tasks for the network . I have worked out how to make the Toolbar on top of all other...

View Article

Report on all hotfixes and windows updates installed?

Hello EveryoneI am new here and glad to join this great forum.  I am a novice in PowerShell but diligently working to become better. The ask I have from my manager is to create a script that will...

View Article

progress bar/ group of aliases

I wrote a script that imports a list of user alias' s, each alias then runs through the pipe and begins a new mailbox move to a specific server and database. What I want is a script that queries just...

View Article


Restart list of servers in a file, capture a log file then email results?

Hello - I have read several posts online about how to do this task and I am not finding one that works really.The ask of me is to restart servers from a list inside a text file and reboot them one at a...

View Article

View installed updates.

Hi,In powershell is there any cmdlet or any other way to list all the installed updates on a windows 7 PC. I have tried Get-Hotfix but it not giving the total list of updates installed on a PC.

View Article

win32_product not returning anything

Hi!Just started to learn powershell and I think I'm loving it :-) Anyways, trying to make a script to determine what roles are installed on a server. And if the roles are missing then install them.I've...

View Article


trying to create a GUI ....looking for suggestions

this is based on sapien powershell which some of you may or may not be familiar with... but looking for suggestions from the very helpful people on this forum.im trying to build a multi function gui...

View Article


Trying to figure out how to create a report.

Hello, I have a script, which it retrieves the number of connected sessions to Citrix servers.At the moment I just simply generate an output like this:Server: CHCTXSUP001 has: 2Server: CHCTXSUP002...

View Article

Image may be NSFW.
Clik here to view.

Cannot find an overload for "GetFileItems" and the argument count: "4".

I have need to call in and use custom .net code for interacting with TFS. Here is the code I'm using $dlls = gci D:\scripts\ps1\tfs\TfsApiLib\lib\net45 foreach ($dll in $dlls){    $assembly =...

View Article

Complex AD script for stale computer accounts

I am known as 'the PowerShell' guy at work, mainly because I have begun studying and know a little bit about PowerShell and nobody else does. Normally, I will research and write my own PS scripts, but...

View Article

Error in executing powershell scripts through script editor

Friends:I am trying to execute a powershell script.  But i am getting the below listed error.File C:\Users\Sudhakaran\AppData\Local\Temp\c93574f5-a465-4e64-b76d-09ed03ce77d1.ps1 cannot be loaded...

View Article


Checking Out The Where and ForEach Operators in PowerShell V4

With the release of PowerShell V4, we received the Desired State Configuration (DSC) module as the main piece as well as some other things, some known and some not known that well. One of those things...

View Article

Where() method in powershell 4 breaks my objects!

Boe Prox wrote an excellent post on the new Where() and Foreach() methods in Powershell Version 4 over at his blog:Read More

View Article


PowerShell to change the computer name

I'm new to PowerShell and I'm looking for help creating a script to change the computer name. What I would like to do is grab the serial number which is 15 characters long use the last 10 of the serial...

View Article

scheduling task on remote computers powershell V3

hello I want to run scheduled jobs from admin Workstation Powershell ISE V3 , after using  remote connection tab and enter the remote administrator credential for the remote computer, i run scheduled...

View Article


Generating new Domain Local Security group from Global Security group in...

Hi everyone,I have a task of copying all the Global Security groups in to Domain Local Security group with added DL_ prefix. I have around 2500 groups so the best way is to use powershell.So the...

View Article

Image may be NSFW.
Clik here to view.

List all local groups

Hello,I have a problem while listing local groups via PS v2."net localgroup" runs fine: When I run PS ($obj.psbase.Children | Where {$_.psbase.schemaClassName -eq "group"}) it doesn't stop and program...

View Article

Query server for domain or workgroup - prompt for credentials?

Hi Experts! I am trying to find a way to query a large list of servers to find out what domain they are in or the workgroup.I have a query I came up with to search the domain for the computers to get...

View Article
Browsing all 6937 articles
Browse latest View live