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

quick question here

Hello there experts I have an idea of something I want to do but thinking what's best way to do it(since i haven't done this kind of thing before) I have a command which outputs 3 results like this:...

View Article


HTML PowerShell report - error - reserved future us?

Hello,I am trying to run an html report to pull quota data for file servers.  I keep getting an error about the < character being reserved for future use.  I've read about this, but thought if it...

View Article


Get-Printer - get printer names from a print server, display as drop down and...

hi, i am trying to make a scample script to get printers from a print server and show as drop down list.and once selected, install the printer locally using x64 or x32 bit drivers.Please guide.even...

View Article

Trying to check the current logged on user against a CSV, to find value of row

Hi,Real newb, sorry...I'm trying to fetch data out of a *.csv file. The data it will look for is the currentlylogged on user (well that is easy $env:username), but the *.csv has two columnswhere the...

View Article

Disable AD Computer from txt file and move it to target OU

This is the script I have, but something is not right. Import-Module ActiveDirectory$computers = get-content "C:\disabled computer.txt"foreach-object{$computer | disable-adaccount$computer |...

View Article


To run a software application

Need help in installing the software's using PowerShell.At my knowledge i have created a script but it need manual intervention to install. please help.Set-ExecutionPolicy RemoteSigned -ErrorAction...

View Article

Export csv contents

Hi i am trying to remove the unwanted columns from csv.the problem is i am able to get the headers only, finding difficulties in bringing the contents from those columns

View Article

Add Help to your PowerShell Scripts

One of the greatest tools to assist with learning PowerShell is the help system, and specifically the Get-Help cmdlet. Read More

View Article


PowerShell Studio 2014 from Sapien released!

PowerShell Studio is a Toolmaking Environment, a PowerShell Integrated Scripting Environment (ISE) tool that let you edit and debug scripts, create package, installer, executable and deployments. Also,...

View Article


Empty recycle bin on remote computer

Hi folks!I need to find a sollution how to empty recycle bin on remote computer (same domain as for PC where script will be started).I've tried to make it with Remove-item (del) with no luck. Main...

View Article

Formating

I've discovered that formatting is sort of a pain for me.   I have this code that works and returns the information I need. $printers = Get-WmiObject -computer mgmg17ps -class "win32_printer" | select...

View Article

Script to clean out old messages from Journal mailbox after exporting email...

After using the following script to export email to a .PST file I'm wanting to clean out the Journal email box called "JournalMailbox":  New-MailboxExportRequest JournalMailbox -FilePath...

View Article

Change Drive Letter

Currently, I have a USB3 disk that I insert into a server on a weekly basis.I want to get the label of this disk "Week1", "Week2" etc.. and pass that to a command that will change the drive letter to...

View Article


XAML Frontend and keyevents

Hi,I am trying to add the "Enter" keyevent to a textbox that was created with XAML. I found several code examples for C# and other languages but none for powershell. Here is a little code example to...

View Article

help for unattended software installation

HI,Need help in installing the software's using PowerShell.At my knowledge i have created a script but it need manual intervention to install. please help in doing unattended...

View Article


Announcing PowerShell module for managing Kemp LoadMaster appliances

In an earlier article, I talked about managing Kemp LoadMaster appliances (both physical and virtual) using the Kemp’s RESTful API. Using RESTful API is complex because you need to know all the details...

View Article

Required Scripting Parameters in PowerShe

When you write a PowerShell script, you are creating something that might be executed by someone else on a totally different computer. A potential obstacle is that the person running your script may...

View Article


Change linkedmasteraccounts on multiple users using import-csv in Exchange 2007.

I am trying to change linkedmasteraccounts for around 200 users. I tried to script it, script below but it seems to fail. I am new at this and would appreciate any advice on how to get the script below...

View Article

Execute Powershell Script from within TSQL

Hello PS Folks,I am trying to find the EXCEL file from a location and rename the Sheet Name in it.I have the SSIS Package from which I am looking for the EXCEL File from a  certain location and load...

View Article

WMI and SCCM - Check How Many Pending Updates for Remote Machines

Hi All,My company uses System Centre 2012 Configuration Manager (SCCM 2012) to deploy Windows operating system updates to servers and workstations.I've written a PowerShell script to reach out to...

View Article
Browsing all 8583 articles
Browse latest View live