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

using something else in place for "-file"

Hello, I have been using the latest version of Powershell 3.0 and all of my scripts work fine for what I am trying to do. I have recently been informed that I should design my scripts to work on other...

View Article


Null AcceptMessagesOnlyFrom Attributes

Part of this script I'm working on looks at the AcceptMessagesOnlyFrom, AcceptMessagesOnlyFromDLMembers, CustomAttribute5, and HiddenFromAddressListsEnabled attributes of a mailbox and based on their...

View Article


XML Marks the Spot

By Jeffrey Hicks In the Windows world the XML format has long been the format of choice for capturing complex data. XML is a big topic that deserves a number of lessons, but I'll save that for later....

View Article

Working with Splunk Indexes using Windows PowerShell

By Hal Rottenberg  In my last post, I talked about a way to use PowerShell to ease the installation of our Splunk App for VMware. This time, we’ll be using PowerShell in a much different way. As you...

View Article

Jaap Brasser’s Favorite PowerShell Tips and Tricks

When I met up with Aleksandar Nikolic at TechEd Europe I was asked if I wanted to write an article for PowerShell Magazine. I hope my tips are useful to you and feel free to leave a comment or question...

View Article


Printer status

How can powershell collect the printer status specially I want to read the toner status and the suplies needed. Thank you

View Article

Compressing files remotely

Hi,   I'm building an application for work that backups et restore a software with Powershell and winforms.  There is some databases and core files to backup/restore.  Now the SQL part works fine using...

View Article

How to Remove Custom SMTP Address

Team,   I need help with a quick one hopefully someone can help i have a custom address in email address that is NUMERIC:000000 it is for voicemail. I am trying to remove the custom attribute from emc...

View Article


Export to excel from SQL Server (Remote) with formating

Hi Experts, I am a novice to poweshell. I would like to know how to export the content of a table present in a remote SQL Server table to an excel. I would like to format first column of the table to...

View Article


Simple Converting from Decimal to Hex

Hello! I am new to powershell and have an algorithm that will convert from decimal to hexidecimal: $b = 10 #any value can be inserted here $c = [int] $b $c = "{0:X}" -f $c $cI want to go through a txt...

View Article

Elevated function()

Is it posible to elevate a single function call? I know the credentiels for the AD user i want to elevatem so is it possible to do somting like this: Function RunAsElevated() {  $credential =...

View Article

How to access Music app in Win8 using powershell

Hi Team, I want to write a ps script for opening Music App in Win8 Can any1 please help me in this.   Thanks Abhishek B    

View Article

Please help with Password Policy and Audit Policy

Hallo PS, I found this script below which is show the current password policy, it work perfectly except the PasswordComplex, and can you guild me how to show "Store password using reversible...

View Article


Need a script

we need to get the iis and event logs from production servers, then we need to zip those files to someother location on a daily basis It needs to have a well laid out folder structure for all these...

View Article

admin please help me to delete this post, thanks

admin please help me to delete this post, thanks

View Article


Project Server 2010- Powershell- synchronize tasks with Exchange for all Users

This script uses Resource web service & Reads the Active Users data & based on Resource NT account for all active users, ADPermission command is run in powershell to synchronize tasks with...

View Article

Image may be NSFW.
Clik here to view.

Simple go through a folder and for every item (Inlcuding other subfolders)...

Hello all! I have a folder and inside this folder are files (.atf ext) and other folders that contain the same type of files (.atf ext). I want to go through and first check to see if a path exists for...

View Article


how can I check the existence of the window with a specified window title (or...

Hi, I use invoke-expression to call a command to extract a big file, which will take about 30 seconds to complete. When the extraction completed, a window will pop up, and I need to click the OK button...

View Article

Finding the owner of the directory on the file server

Hello, We have a new big project coming up of migration of file server.   I am assigned a task of creating a list of the owner's of the directory on the share.  I have written a very basic script for...

View Article

Simple Convert Powershell 3.0 statement to Powershell 2.0

Hello All! Yesterday Don gave me this statment: dir *.atf -recurse and it worked well on PS 3.0. Now when I try on PS 2.0 it does not work. So I have tried this: get-childItem C:\path -include *.atf...

View Article
Browsing all 8583 articles
Browse latest View live