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

How do I get the boolean value for "enabled" to export in this script

With this script, the value for "enabled" is blank.  How do I get it to show "true" or "false" in the export, if at all possible?  FunctionGet-Filtered{#---------- All...

View Article


Extract EDB file to PST

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4If you wish to Extract EDB File to PST then full fill your wish through the wonderful Exchange EDB to PST software which is...

View Article


Error: Read text file, replace matching pattern, output to CSV file

Hi everyone,I'm new to PowerShell. I'm trying to read a text file, find matching pattern ("NO RECORD") and replace it with ("NORECORD") then output the result to a new CSV file. However I didn't get...

View Article

Extract EDB file to PST file

Want to extract Exchange EDB mailbox in accurate manner? And have no relevant solution overtake such problem. Then be familiar with smart and excellent Exchange EDB file extractor as third party tool...

View Article

Server 2K8 script to check students config

Hi guys, We run a course where our students configure active directory with user accounts and permissions on server 2008. After they are done, then comes the laborious task of going through each...

View Article


Any free vmware backup solutions?

As per the title really, i need some way of backing up VMware virtual machines without having to shut down the VMs Ideally free, but if not as cheap as possible! Any suggestions or thoughts

View Article

Gwmi Printer Published = False

Hello,Iwould setthe variable "Published"from"True" to "False".Here is mycode:gwmi win32_printer -Filter "Published='True'" | Select-Object NameThanks

View Article

Invoke-Command with ScriptBlock problem

I'm try to write a code to scan a system on remote PC and also delete files from different location.I have try following code but it didn't work. $command = {    function::Stinger-Copy-Files...

View Article


Back Up and Restore Lync Contacts Using PowerShell

There might come a time when Lync contacts are lost when you move a Lync user from one pool to another pool. This has happened to me. If you regularly back up Lync contacts, you can easily restore the...

View Article


How do I do the following?

I have the following script which works.   It does everything I want it to do.  But I wanted to add some more "cool" functionality to it.     How would I do the following.  If $model -LIKE '*MD*' Then...

View Article

call csvde in powershell

I am trying to call CSVDE in powershell passing some credentials to it. Its part of a bigger picture so I cant just run CSVDE seperately. Cant seem to get it right.  Any ideas? Thanks in advance. ___...

View Article

Output from two different areas in a single line.

I need to combine the output of two areas in a single line for each server. I am trying to find what is the best way to do that. $servers=Get-ContentC:\Temp\srv.txt$collection= $()foreach...

View Article

Solve out Outlook OST file recovery problem through OST PST Recovery Software

As we all know that it is too difficult to understand the occult reason of corruption in OST file, So as like this it is too difficult to do secure recovery manual. So without taking high risk of data...

View Article


Exchange 2010 Export Mailbox o PST

For simple recovering Exchange EDB emails after corruption is quite difficult with manually, but via excellent third party tool user can fight against any corruption issue. Now be familiar with such...

View Article

Refreshing a user profile to a fixed state for every logon

For something resembling kiosk-type usage, I need to create a non-persistent Windows 8.1 user account that resets itself to a pre-configured state every time a user logs on to it, then reverts any...

View Article


regex

I have several files that I need to parse for a user's name and phone number; however, I am unable to get this data parsed out correctly. In the following code, I am trying to retrieve the fullname,...

View Article

Split string

I know this must be a simple answer, but I'm just starting out and don't have any formal training.The following line will give me a list of users connected to a Citrix published app:Get-XASession...

View Article


Howto modify tab text file and insert Pipe-Delimiters

Hi,I my case I have tab delimited text file in that i want to change the 2nd field value and convert the tab/spaces to pipe delimted CSV file.I have conversion list, if 1 in 2nd field to be replaced...

View Article

Iterating powershell code for scheduled reboot jobs -REQUIRES URGENT HELP

Hello Everyone, Being windows administrator it is necessary to patch the Servers till the latest and so its necessary to Reboot them after patching in order to see the effects the patches.I have...

View Article

how to tick a box?

Get-ADUser SmithJ -Properties *   this of course works and one of the properties it returns is:  ProtectedFromAccidentalDeletion    : False   How do you change that to :TRUE ?   We have an OU with...

View Article
Browsing all 6937 articles
Browse latest View live