Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

My first Powershell Script

So I have finished my first powershell script. It may have been ambitious but with the help of others and much googling/technet I have completed it.The purpose of this scriptDownload a list of current...

View Article


Powershell Help - Null values?

I am trying to write a kind of generic script that I can turn into a .exe give to users so they can report problems to me. However I cant quite seem to get Send-Mailmessage to cope with null values...

View Article


PowerShell - Look for User Signatures

I have been tasked to mine user systems to locate their e-mail signatures to ensure they are compliant with the current signature policy.I would like to feed powershell a list of computer names and...

View Article

powershell.exe is really slow to launch on first login.

So I was testing a script on a new HP Folio 840G1. The users log in to Windows with a generic account and then run an executable (that was created from BAT to EXE) that calls the PowerShell script. The...

View Article

Connect two variables

HI,I need a help to out put in following sentence in my report$text= "Path is in following Computer:"$env:USERPROFILE + $text + $env:computernameAs

View Article


error: A positional parameter cannot be found that accepts argument

HI,I'm trying to create the report and got the above error?Invoke-Command -ComputerName $Computer -ScriptBlock { test-path d:\MININT  + � $env:computername }file i need is True - PC1False- PC2etc...

View Article

Windows Update

In a workgroup environment, no domain, no group policy, cannot configure registry key on the client.From my management machine I want to run a powershell script to download patches from a specific...

View Article

Find Terminal Servers from the list of machines.

I'm trying to get the Terminal Servers from the list of machines.Below is my script and the error I'm getting. Any other way to fetch TS...

View Article


PS Script send out incorrect data

I found a PS script that send out a report about a users email usage. The script runs without any errors but it keeps coming back with a count of "0" when there should be a value. the source is...

View Article


Get commands for anything Disk or enclosure related do not work

I regularly use commands such as Get-PhysicalDisk, get-storageenclosure, Get-VirtualDisk, lately these are not returning any information at all.  the volumes and disks are functioning normally but the...

View Article

List all required Parameters for a Cmdlet PowerShell

How could I view only the required params of a cmdlet say Add-CMDistribtuionPoint?

View Article

Running a Powershell Scripting from a LogonScript.bat file

Hello,I have a Powershell script that enables SNMP and configures an appropriate community string. I would like to have the logon script that loads for my users call on this PS Script (sitting on a...

View Article

passing string

Function Start-Commands { delete-user}Function delete-user {...}Start-CommandsIf I have a script that process the data and generates a string. I want to pass this string to below script how do I do it?

View Article


PowerShell Script to collect EventLogs

Hi, I have found a script on ms.com (attached) but would like to tweak it a little.Instead of saving the event logs on each local server I want it to save to a central repository and then clear the...

View Article

Outlook 365 - Powershell to update contact information

Hi - I'm not too versed in PowerShell but I am in need of some assistance. I would like to use a flat file to update contact details for users on my domain. As an example, changing office locations,...

View Article


office 365 in google chrome with PS script

Hello im trying to open ms- office 365 in google chrome with PS scriptwhy? Because im trying to write a script that will  open the web browser and log me in to 365 admin in one single click.meaning I...

View Article

Powershell script to remove diskshadows 2012 server?

I am looking to create a script that removes disk shadow.  Not having any luck with these two files:ps1 first scriptTextset-location c:\users\administrator\downloads diskshadow -s removeshadows.txt...

View Article


Image may be NSFW.
Clik here to view.

Programming picture has code error

I'm just wondering if it bothers anyone else that there is a coding error in the picture for the programing section. http://community.spiceworks.com/programming/projects?source=topic_projectI reconize...

View Article

How to count Excel Rows in PowerShell

I am attempting to loop through some information from an excel spreadsheet. Does anyone know of a method to count the number of rows in a column? Or is there a more elegant method to figure out when...

View Article

When should you use VBScript instead of PowerShell?

PowerShell does a lot of things really well and Adam Bertramisn't afraid to admit it– fromautomating tasks,tofinding registry files, tofinding exceptions in CSV files, PowerShell can be an admin's best...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>