Quantcast
Browsing all 21975 articles
Browse latest View live

Installing Windows6.1-KB2506143-x86.msu breaking psremoting

So we use powershell for everything and under 2.0 all is good all setup via GPO. However if we install that patch it breaks our remote management.I am just looking for ideas on why?

View Article


Disable bluetooth device

Hi,Is it possible to disable bluetooth module in device manager without loading additional module on Powershell?I' ve found something like that$bluetooth = Get-wmiobject Win32_PnPEntity | where...

View Article


Import x500 Exchange LegacyDN into Office 365

Good afternoon, I need some help with importing legacyExchangeDN address' from our soon to be old Exchange 2010 email server to our new Office 365 subscription in order to avoid the inevitable bounce...

View Article

Connecting to the AD Configuration Partition using Powershell

I am trying to make a connection using powershell to the Configuration Partition in Active Directoy using PowerShell. I have seen may examples on the internet on how to connect to the RootDSE to look...

View Article

Windows Firewall Log Parsing

Greetings,I have a Powershell newbie question here that I can't quite get my head wrapped around.  What I'm wanting to do is "tail" the Windows Firewall Log (pfirewall.log), and have it show up on the...

View Article


tab delimited local user import and group assignment

Good day all,I have been banging my head against the wall on this one...  I have powershell 3.0 and am trying to create a script to import 420 users into a local server.  The script is getting various...

View Article

Timer Triggered continue in a foreach loop

Hello all,before digging into the script, maybe someone sees something I missed...$range = 1..100 ForEach ($_ in $range){ if ($_ % 7 -ne 0 ) { continue; } $timer = New-Object System.Timers.Timer...

View Article

Exchange 2010 - RemoteIPRanges powershell script to report for all CAS Servers

HiI would like to list all IP addresses on my receive connectors on all Exchange CAS Servers (2010).I have 4 servers and I would like to have a script that would check all servers for a specific...

View Article


How to set ScriptProperty

How can I achieve the next effect: (dir .\abc.txt).VersionInfo.Comments = "my comment"

View Article


Powershell class name contains dot

Google.GData.Spreadsheets.ListEntry.CustomName "ListEntry.Custom" $variable = New-Object Google.GData.Spreadsheets.ListEntry??? How to create?

View Article

Image may be NSFW.
Clik here to view.

Exchange with Powershell

I've asked this question before without a real solution being provided to my problem. I've scheduled a single daily task (A Powershell .ps1) in the Windows task scheduler that executes a powershell...

View Article

Adding Users with PowerShell script

Here is my code and for some reason it wont add it in. Seems to work but the users are not listed. Import-Csv .\users1.csv { foreach-object $userprinicpalname = $_.SamAccountName + "@XXXXXX" ;...

View Article

Importing from csv and Exporting to csv in Powershell to query AD

Hi,Here's the story, i have a csv file that has close to 10000+ users listed in AD. The csv file has their name and title. (EX: Doe John, Manager)I'm trying to see if it's possible to query AD for the...

View Article


Regular expression matching inner-most set of matched pairs.

I have a bit of XML that I search for matched pairs and then eventually replace the string with something else.$msg = @'<table>  <tr>    <td>Album</td>...

View Article

Where to add size limit syntax

I found the following script on a PowerShell repository, and it works great. I just need to increase the size limit, since it's limited to 1000 entries. I need to put in -sl 0 or something to that...

View Article


powershell script to move files from disk to fileshare

I am new to powershell and need a decent intelligent script to move files.Source is D:\backup1Destination is \\1.2.3.4\backup1I need to check that the destination folder exists, delete contents of the...

View Article

Generate Excel which Shows ADUsers and his Groups in a Matrix with AllGroups

Hi There.I Need an Excel table for managemet, which Shows the following:The Colums should be named as Username ActiveDirectory and some Properties and ALL Groups which are availible in Active...

View Article


One-liner from Scheduled task

Hi, I' d like to run the following command in a scheduled task,  Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exeArgument: -command "& Send-MailMessage -To recipient@server.com...

View Article

Join hash tables / LINQ?

Hello,I'm stuck at the following. I have three hash tables like this:$a (from AD): Name Value ---- ----- ComputerName1 {ManagedBy, WhenChanged, DistinguishedName, Name...} ComputerName2 {ManagedBy,...

View Article

Image may be NSFW.
Clik here to view.

Change override user settings in remote desktop services

clear-host $bansifile= "desktop/result.html" $global:servers= "DEN-DC-01", "DEN-GW-01", "DEN-SRV-01","DEN-SRV-02""<table border=1 cellpadding=4><tr><th align =...

View Article
Browsing all 21975 articles
Browse latest View live