Quantcast
Browsing all 21975 articles
Browse latest View live

Set Extented Attributes for users

Hello Everyone,I'd like to get the list of user's mailboxes which are almost full and set ExtensionCustomAttribute5 to the value:$Users = Get-MailboxDatabase | Get-MailboxStatistics | Where-Object...

View Article


Adding a section in a existing unattend.xml file using powershell

Hi guysI wrote a code which detect the number of disks in a server. I would like to modify the unattend.xml file to tell setup.exe to format every disks during setup.So, how to add a <disk>...

View Article


How to get all command about new-pssession or connect-sposervice with powershell

Now I'm using Office365 Exchange Online and Sharepoint onlineWhen I connect to Exchange Online,I can use the script below:"$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri...

View Article

Start-Process with alternative credential in a remote session

Hi, all,I believe this scenario sounds indeed odd, but I do need your help on this.First I use Enter-PSSession -ComputerName myComputerName -Credential domain\user1to remote to a third machine from my...

View Article

test-path always returns True

 HI all.basically I have a script with tests a path \\127.0.0.1\scripts\siteb.txtif it is true Wait 10 secs and test again.NO if the file is deleted within the wait timer , On the second test it should...

View Article


Azure Snap In?

Hi,I have a PS Script that I want to run on a sever as a scheduled task. The script works great on my personal PC, but that's because I use it for testing and its already connected to the subscription....

View Article

Does get-aduser with -select always truncate the fields?

I am using the following command:get-aduser $user -Properties LastLogonDate | select sAMAccountName, DistinguishedName, LastLogonDate | Format-Table -HideTableHeaders | out-file '.\01-test.txt'I am...

View Article

Import-CSV - Values for Column with Phone Number does not appear

I am using PowerShell ISE to do some scripting for creating new users with New-ADUser. I am also using Import-CSV plugging in all the data.  I use ECHO to make sure each row is being read but my last...

View Article


Access Denied - get-wmiobject win32_service (Powershell)

Getting this error when doing get-wmiobject win32_service on the local computer, but not on a remote computer. This happens only when running under Windows Task Scheduler and a domain account; works...

View Article


Add Contact to AD Group

Hi All,I am trying to add a AD contact to a Distribution Group through PowershellI managed to get the AD Object Contact and Group but when I run the Add-ADGroupMember command it returns an error...

View Article

Closing a HashTable?

Hello,I'm not entirely sure of what is going on but I am having a weird experience when working with, again I assume, HashTables.When I output a hash table any output thereafter appears to try to be...

View Article

Extract unique IP address of the Email sender from Exchange Hub Transport...

Folks,Can anyone here please assist me with the powershell to extract the Email Sender IP address to my HT server role ?I need to identify uniquely which IP address currently sending email to my...

View Article

cpu utilization in html form using powershell for given list of servers.

HI,How do I Monitor and report the cpu utilization in html form using powershell for given list of servers.

View Article


Unexpected token in expression or statement

OK, so I'm completely new to Powershell and probably doing something fundametally wrong.I'm tryingt o edit the contents of a xml file and switch a value from true to false.<?xml...

View Article

Different Results Remote vs Local Execution

Hello community,Working with powershell v2, I get hung up on problem.When I run the command "get-childitem -Recurse " on a remote machine using invoke-command, most of the Length values of the output...

View Article


Remote Scheduling of a job

Hi,I have to schedule a task to run a batch file on remote machines which will  launch a Python test script to launch a GUI app and automate the functionality of it(to be exact, it's a Sikuli script...

View Article

I need help with powershell and sql server for generate file base on row value

Hello Dears,first sorry I new bee to powershell and I have to realize this script for my job.on a sql server database, I have a table with 3 columns ( ClientId,ReportId,Details). I have to generate for...

View Article


String builder to Rich Textbox or Datagrid problem

Hi:I am working on a powershell GUI using PrimalForms Community Edition and I am stuck getting the string I have built sent to either a Rich Textbox or Datagrid. I am adding functionality to the...

View Article

How to reference parameters with $ sign in their identity / name

Hello. I am making a script which will allow my service desk to make changes to Exchange and AD via a GUI. The specfic issue I have is that some distribution and security groups I need to add users to...

View Article

Need assistance tuning my powershell script

I am trying to use my script to connect to a webpage I set up on another machine using IIS, and download every file and folder within the site. Also, I plan on running this script daily to collect any...

View Article
Browsing all 21975 articles
Browse latest View live


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