Can it be done through powershell?

we just increase drive C space on more than 30 Windows 2008 R2 VM servers.  We do not want to manaully log onto
each server to do scan disk and extend the volume.
Can it be done through powershell?
thank you for your help.

enter-pssession servername
diskpart /s  diskpartscriptfile.txt 
or upgrade all your servers to  2012
Dan
This would require touching each server. Invoke-Command is a much better choice for this scenario, as it can handle each machine in one go.
EDIT: We still don't know if the OP has remoting enabled. I've yet to get an answer to that question.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)
correct, I was giving an example. Try one server like that to see if it works and then start with the scripted solution.  
Dan

Similar Messages

  • Hello! How can i setup and what to enable that my secretary has my shared calendar on her Iphone and that she can edit it? We are on Exchange 2010, Outlook 2010, Iphone 4s. Can it be done through some app? Thank you!

    Hello! How can i setup and what to enable that my secretary has my shared calendar on her Iphone and that she can edit it? We are on Exchange 2010, Outlook 2010, Iphone 4s. Can it be done through some app? Thank you! I'm trying to avoid creating my exchange activesync account on her Iphone and then sync only my calendar.

    Thank you for your time. I'm trying to avoid that because she can then simply turn on mail syncronization and then she could read my mail. Another reason is our password policy, that enforces changing our windows logon password every 90 days. Of course changing windows logon passwords demands changing exchange account logon info (password) on Iphone. I have read somwhere that there was an app but it was removed from app store. Any other suggestions would be appreciated.

  • Is this can only be done through Java mapping?

    Hi Friends,
    my scenario is jdbc to idoc.
    Am able to create multiple idocs basing upon delivery_date. But here my requirement is -- there are qty, slnumber, vaxinum are having different values. And all these should also be generated in the same Idoc.
    INPUT
    delivery_date         ------      qty   -------- slnumber        -------- vaxinum
    19/02/2006            ------  10      ----------   457854        --------- 10001
    19/02/2006            ------  20      ----------   457855        --------- 10001
    19/02/2006            ------  30      ----------   457854        --------- 10001
    19/02/2004            ------  20      ----------   457854        --------- 10001
    19/02/2004            ------  20      ----------   457854        --------- 10001
    19/02/2005            ------  20      ----------   457854        --------- 10001
    OUTPUT
    Three Idoc's to be created -- am able to create it basing upon delivery_date.
    But for 19/02/2006 this Idoc number there are different qty and different slnumber. So, I want to be created multiple segments in the same IDoc.
    Thanks.
    S.
    Edited by: Swarna on Sep 21, 2011 1:29 PM

    Hi Swarna,
           Please try with the below logic.
    DeliveryDate-->removecontext->sort->splitbyvaluechange->collapsecontext---IDOC
    concatsortUDFSegment
    coacat:
    Input1-OutputofFormatByExample1sort
    Input2-OutputofFormatByExample2sort
    FormatByExample1:
    input1:outputofsortbykey2
    input2:DeliverNo-removecontext-sort--splitbyvaluechange
    FormatByExample2:
    input1:outputofsortbykey1
    input2:DeliverNo-removecontext-sort--splitbyvaluechange
    sortbykey1:
    input1:DeliveryNo--removeContext
    input2:SlNumber--removecontext
    sortbykey2:
    input1:DeliveryNo--removeContext
    input2:qty--removecontext
    *ExecutionType of UDF is all values of context*
    public void UDF(String[] var1, ResultList result, Container container) throws StreamTransformationException{
              ArrayList aList = new ArrayList();
         for(int i=0;i<var1.length;i++){
              if(aList.contains(var1<i>))
                   continue;
              else{
                   aList.add(var1<i>);
                   result.addValue(var1<i>);
    Thanks
    Priyanka

  • Can't send email through Iphone?

    I wasn't able to send through my Cox.net account, so I called AT&T customer service. They said it can only be done through the Edge service, with an outgoing mail service of "Cwmx.com (Cingular Wireless Mobile.") This solution worked!!!

    That will work if you connect via the AT&T EDGE network. That will NOT work if you connect to the Internet with WiFi.

  • In R12 DQM synchronization method can be done through UI...

    We have one issue going on where DQM synchronization menthod is changed to BATCH from automatic.
    Its happening frequently.
    Can some one please give the query behind the page so that we can identify who has changed the query.
    Regards,
    Prakash Ranjan

    Duplicate post.
    In R12 DQM synchronization method can be done through UI...
    In R12 DQM synchronization method can be done through UI...

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • I can't send emails through Yahoo using Firefox. Already contacted Yahoo and they don't know why it's happening.

    I can't send emails through Yahoo using Firefox. Already contacted Yahoo and they don't know why it's happening.
    == This happened ==
    Every time Firefox opened
    == a month agao

    I also cannot send email through Yahoo using Firefox 3.6.8. I can receive emails and surf the web just fine. I have also contacted Yahoo and have gotten no where.

  • I don't know much about computers can anyone walk me through this ? How Do I Change The Software Update Server Address On A Client  ? what do I open and how do i put it in the right spot?

    I don't know much about computers can anyone walk me through this ? How Do I Change The Software Update Server Address On A Client  ? what do I open and how do i put it in the right spot?

    The simplest method is to run a defaults command on the client Macs (easily pushed via Apple Remote Desktop):
    defaults write com.apple.SoftwareUpdate CatalogURL 'HTTP_URL_FOR_CATALOG'
    for a user. If you run it via sudo it will set it for whenever you use softwareupdate as root.
    The HTTP_URL_FOR_CATALOG has been changed with Mac OS X 10.6.  If you use MCX it will automatically pick the new catalog – however if  doing it manually the following URLs need to be used for whichever  client version is in question:
    Mac OS X 10.4: http://mysus.example.com:8088/index.sucatalog
    Mac OS X 10.5: http://mysus.example.com:8088/index-leopard.merged-1.sucatalog.sucatalog
    Mac OS X 10.6: http://mysus.example.com:8088/index-leopard-snowleopard.merged-1.sucatalog
    Mac OS X 10.7: http://mysus.example.com:8088/index-lion-snowleopard-leopard.merged-1.sucatalog
    Mac OS X 10.8: index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog
    To double check this applied you can run the following command:
    /usr/libexec/PlistBuddy -c Print /Library/Preferences/com.apple.SoftwareUpdate.plist
    and /usr/libexec/PlistBuddy -c Print ~/Library/Preferences/com.apple.SoftwareUpdate.plist
    to see what settings are for the computer and user appropriately.
    If  this is working correctly when running Software Update (GUI) you should  see the server address appear in parenthesis in the title of the  window.
    MCX
    Another alternative is to use Workgroup  Manager to manage the preferences via MCX from your server. This can be  done for users, or for computers if they are bound to your Open Directory.
    If you are using 10.5 Server or newer: you can simply use the Software Update section under Preferences.
    Manually:
    Choose the accounts, computers, or groups to have the preference applied to.
    Click on Preferences, and then the Details tab
    Press the Add… button and navigate to /Library/Preferences/com.apple.SoftwareUpdate.plist
    Press Edit…
    Under Often, add a New Key and enter the name CatalogURL
    Make sure the type is string and then enter your SUS URL (eg. http://mysus.example.com:8088/index.sucatalog or if using 10.6: http://mysus.examle.com:8088/ – see above from the defaults section)
    Press  Apply Now, then Done. Once users/computers have refreshed their MCX  settings (usually the next login or restart) the new settings will take  over.
    If this is working correctly when running Software  Update (GUI) you should see the server address appear in parenthesis in  the title of the window.
    In order to have a system-wide configuration one has to run the following:
    sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://your.updates-server.lan:8088/index.sucatalog"
    In order to correctly work both on Leopard and Snow Leopard the right command to issue is:
    defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://your.updates-server.lan:8088/index-leopard-snowleopard.merged-1.sucatalog"
    Happily used and tested on my network
    The DNS trick that Chealion points out is fantastic. I use it at our office, and every computer on our LAN  will automatically pull the updates from the local repository at high  speed without any configuration.
    Create the swscan.apple.com DNS zone on your internal DNS server, and have it resolve via an A record to your Mac
    Tags: automaticupdates mac clients macosx setting as default software update
    Category: Serverfault
    Share
    0
    0
    Google +
    0
    0
    0
    5
    You might also like:
    Can I Update My Jb 4s To 6.1.2 Without Restore? Tue. Jan 21st, 2014
    Iphone 4 Not Charging After Update To IOS6 
    IPad 2 Not Updating To IOS 5.1 
    How To Resolve The â€âunable To Install Update” Error For OTA IOS Updates? 
    What Is â€âSoftware Update” Doing When It Says â€âChecking For New Software”? 
    Advertisement
    Comment
    - See more at:  http://www.eonlinegratis.com/2013/how-do-i-change-the-software-update-server-add ress-on-a-client-mac-to-use-my-own-server/#sthash.YhHp5zWk.dpuf

  • How can I get a print out of a conversation that was done through text on 08/23/2014?

    how can I get a print out of a conversation that was done through text on 08/23/2014?

    On what kind of phone model? Some phones depending on the OS have SMS Backup applications available.
    You need a court order to get transcripts for the last 6 days or so of text messages directly from Verizon Wireless.

  • HT204274 As a merchant where can i find receipt of a merchant for a transaction done through apple pay ?

    As a merchant where can i find receipt of a merchant for a transaction done through apple pay ? 

    Receipts would be a function of your Point of Sale device, so you should contact your POS vendor.

  • My daughter has purchased music through my account and would like to start her own account and transfer her purchases there.  Can this be done?

    Is there any way of moving her music to her new account/computer?  Will she have to re-purchase all of her music in order to accomplish this feat?  I have no problem dis-associating this music with my account.  Can it be done?

    Syncing to a new iTunes library or computer will erase her ipod. Only if you back up manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect her ipod to her new computer and right click on it in the device list and choose backup. iTunes will backup your device without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect her ipod for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved:iTunes: About iOS backups
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • Error During install Exchange 2013 through Powershell on Server 2012 "Mailbox role: Client Access service"

    Dear all
    During install Exchange 2013 through Powershell on Server 2012 I got this error in Mailbox role: Client Access service :
    The following error was generated when "$error.Clear();
    $BEVdirIdentity = $RoleNetBIOSName + "\OWA (Exchange Back End)";
    new-OwaVirtualDirectory -Role Mailbox -WebSiteName "Exchange Back End" -DomainController $RoleDomainController
    set-OwaVirtualdirectory -Identity $BEVdirIdentity -FormsAuthentication:$false -WindowsAuthentication:$true;
    " was run: "An error occurred while creating the IIS virtual directory 'IIS://MONAMBX2.mona.local/W3SVC/2/ROOT/o
    wa' on 'MONAMBX2'.".
    The following error was generated when "$error.Clear();
    $BEVdirIdentity = $RoleNetBIOSName + "\OWA (Exchange Back End)";
    new-OwaVirtualDirectory -Role Mailbox -WebSiteName "Exchange Back End" -DomainController $RoleDomainController
    set-OwaVirtualdirectory -Identity $BEVdirIdentity -FormsAuthentication:$false -WindowsAuthentication:$true;
    " was run: "The operation couldn't be performed because object 'MONAMBX2\OWA (Exchange Back End)' couldn't be fo
    und on 'MonaDc1.mona.local'.".
    Any advice please !!

    I can't answer your question but I had a similar issue when I was trying to move our mailbox database off the C: drive.  Our environment still has an Exchange 2007 server in it and when I was trying to move the database on the 2013 server, I would get
    error messages saying the database does not exist.  It seemed like it was trying to move the database on the 2007 server from the similar error messages that I was getting.  To get around it, I deleted the database and created a new one on the drive
    where we wanted it.
    I discovered this when I was configuring the Antispam settings.  I deleted our 2007 settings, added them to the 2013 shell, the settings appeared on our 2007 server.  The shell on 2013 was making changes to 2007.
    I'm not sure if there is a "Get|Set or New" command that I/we should be using when this happens.  Or maybe my issues will be fixed if I just remove the Exchange 2007 server?  I'm not ready to do that yet because I can't configure the spam filtering
    on 2013 yet with its shell not being able to make the changes that we need.
    I don't know if your environment is in coexistence mode like mine.
    Hopefully someone else out there has an answer or can tell us when/how the shell can make the appropriate changes to the 2013 server.  Does this happen after the 2007 server is removed?

  • App-V Server : Changing Package Name through Powershell.

    Hi,
    Is it possible to change the package name through powershell ?
    Here is the sequence i tried which didn't work...
     $package=Get-AppvServerPackage -PackageID ""
     $package.name="<new name>"
     Set-AppvServerPackage -AppvServerPackage $package
    And also the version set to all the packages is set to 0.0.0.1 , Is there any other place where they save the version of software or they don't deal with software version ?
    Any help on this would be great...
    Thanks,
    Sumit.

    I doubt that you can modify the package name 'afterwards'. If the package name really is a concern (users usually don't see that), it should be modified using the Sequencer or Application Virtualization Explorer.
    Falko
    Twitter
    @kirk_tn   |   Blog
    kirxblog   |   Web
    kirx.org   |   Fireside
    appvbook.com

  • Setting Azure Website General Settings through Powershell

    Hi,
    I am looking for information on how to set the website general settings through powershell cmdlets. When I create a new Website through gallery and choose Apache Tomcat 7 it default selects the .net framework. I would like to set those off and use Java version
    Don't see any commands to set that default while creating a website. 
    Also, how can I set an SSL certificate and traffic manager end point to my website using powershell cmdlets.
    Thanks in Advance.
    Trupt

    Hi Trupt,
    Based on my research, you can configure the Type to AzureWebsite when you use
    Add-AzureTrafficManagerEndpoint or
    Set-AzureTrafficManagerEndpoint cmdlets. Although the article below is for cloud service, you can change the type and follow it:
    http://azure.microsoft.com/blog/2014/06/26/azure-traffic-manager-external-endpoints-and-weighted-round-robin-via-powershell/
    In addition, based on my experience, you can create a SSL certificate via Azure PowerShell, however, there is no way to add it to a web site in Azure PowerShell.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Connect Office 365 Exchange Online through Powershell

    I am trying to perform some operations on Exchange online(Office 365) through powershell.
    First I created a new powershell session and exported the modules to local as "o365", so that on any later operation I no need to use Import-PsSession to download the required modules
    $cred = Get-Credential
    $s = New-PSSession -ConfigurationName "Microsoft.Exchange" -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $cred -Authentication Basic -AllowRedirection
    Export-PsSession -session $s -outputModule o365
    Now, I am creating new session and importing the existing module "o365".
    $cred = Get-Credential
    $s = New-PSSession -ConfigurationName "Microsoft.Exchange" -ConnectionUri "https://ps.outlook.com/powershell/" -Credential $cred -Authentication Basic -AllowRedirection
    Import-Module o365
    Get-DistributionGroup
    While running the command "Get-DistributionGroup", powershell prompts me to enter the office 365 credentials once again. Is it possible to avoid entering the credentials once again? I don't want to use Import-PsSession, since it takes more time.

    Hi,
    Not sure, if the following cmdlets can make a difference. Anyway, suggest you to try these:
    $UserCredential = Get-Credential
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
    Import-PSSession $SessionGet-DistributionGroup
    Regards from ExchangeOnline.in|Windows Administrator Area | Skype:[email protected]

Maybe you are looking for

  • How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book?

    How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book? Everytime I write an email on the Apple mail app (as well as in Gmail) it recommends a bunch of emails that are not my contac

  • Quicktime removed re-added itunes 7, error signature

    Quicktime was removed from computer. itunes wouldn't start. re-installed updated itune 7. now itunes won't open. error report states- error signature. help! tried to restore, didn't work. either need to extract library or figure out my signature prob

  • Archiving parameters?

    Hi All, We were trying to create archiving and deletion procedure for XI Message. I had a query.. in Retention parameter setting there is option .. XML Message without error Awaitin Deletion. in Integration Engine Parameter settingn there is option..

  • Advance Payments/Prepayments

    Hi, I want to make an advance payment for a supplier in Oracle Applications. My technical consultant told me that it is Prepayment invoice(Payables) option in Oracle Apps.I am using 11 version of apps. If anyone of you can expain about the same will

  • Adobe Standard 8.1.2 Opens but keeps closing

    I have adobe acrobat standard 8.1.2., when I open a pdf file, it opens like for 10 seconds and the program closes. How do I fix this?