I need a script to connect to desktop of OS client, similar to the option in the wizard to customize comments

I need a logon script automatic login to the desktop of OS client, similar to the option in the wizard to customize comments.

Run us scripts customer sites, living environments, for whom 100% verification is needed that the script was successfully run.  After some problems with the scripts that have been check the success of the changes (1 are given here and there because of services failed in the verification process of guest OS, such as the RPC errors that may occur for countless reasons), the management asked our service team now, manually connect to all systems to check that changes to script worked properly.  I am trying to speed up this process by automating the process of with a specific account logon.

Ideally, I would like to run a script powercli to power on virtual machines and have a specified account auto login on the desktop.  If powercli script does not have this option maybe someone knows a wmi for powershell script that will handle this function.  There is an option to automatically connect as an administrator when you deploy a computer virtual to a model using the wizard to customize comments, I copy this code if I knew exactly where it was...

Thanks in advance for the help with this challenge of script...

Have you considered using the Invoke-VMScript cmdlet to do this?

It allows you to run a script inside the guest OS and do your tests/checks this script

Tags: VMware

Similar Questions

  • Need a script to connect to multiple hosts and clear on the same vsan

    Hi Experts,

    I need a script (python / shell) connect to multiple esxi hosts and run the commands below.

    set automode storage vsan esxcli - active = false

    list of VSANs esxcli storage | grep-B4 "SSD: true.

    storage of vsan esxcli remove naa.* s

    esxcli vsan cluster leave

    Could you please hel, thanks in advance.

    You can try something like this

    Get-VMHost | %{

    Game-VMHost - VMHost $_-maintaining state-confirm: $false

    $esxcli = get-EsxCli - VMHost $_

    $esxcli.vsan.storage.automode.set ($false)

    $esxcli.vsan.storage.list () | where {$_-match 'SSD'} | %{

    $esxcli.vsan.storage.remove($_)

    }

    $esxcli.vsan.cluster.leave)

    Game-VMHost - VMHost $_-connected state

    }

  • Need a Script to pull data from use of resources based on the resource pool by.

    LucD I have created the script, but I wanted to add additional information such as total memory, CPU, Avg Total memory usage, below, the Avg CPU usage total storage.etc

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp)) {}

    $report += get-disk hard - VM $vm |

    Select @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}},

    @{N = "VM"; E = {$vm. Name}},

    @{N = 'HD'; E={$_. Name}},

    @{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},

    @{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"

    @{N = 'Path VMDK'; E={$_. File name}}.

    @{N = "Format"; E={$_. StorageFormat}},

    @{N = ' Type'; E={$_. DiskType}},

    @{N = 'VM tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},

    @{N = "CapacityGB"; E={$_. CapacityGB}}

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

    }

    }

    Something like below the lines wanted to add in my script above but could not understand how do. Need to add information resources as much as possible. Please help me on this.

    @{N='GHz CPU capacity';} E={[math]::Round($_. CpuTotalMhz / 1000 , 2 )}},

    @{N="GHz CPU used";} E={[math]::Round($_. CpuUsageMhz / 1000, 2 )}},

    @{N="CPU GHz free";} E={[math]::Round(($_. CpuTotalMhz - $_. CpuUsageMhz) / 1000 , 2 )}},

    @{N='Go memory capacity';} E={[math]::Round($_. MemoryTotalGB , 2 )}},

    @{N="Used memory GB";} E={[math]::Round($_. MemoryUsageGB , 2 )}},

    @{N="GB free memory";} E={[math]::Round(($_. MemoryTotalGB - $_. MemoryUsageGB) ,2 )}}



    The lines to add are displaying the results of a calculation on performance data, which are obtained through Get-Stat.

    In this script you better start from the script where you have taken these lines and then add the properties of the 1st script.

    In the objects returned by Get-Stat, you have access to the virtual machine through the property of the entity.

  • I need a script to perform a specific action and save file with the SAME name of document .jpg

    I have all my PSD master files registered as follows: mydocument_PSD.psd. I want to run a custom action to sharpening and then save the file as mydocument.jpg (note the part "_PSD" should be removed).

    I found this Photoshop-export-PSD-script/Export - PSD.jsx to edwardloveall/Photoshop-export-PSD-script master · · GitHub that gets me close to there, but that's a png and is the name of the document to the right and there is no action ran.

    Any ideas?

    This gives a try...

    #target photoshop;   
    
    main();
    function main(){
    if(!documents.length) return;
    try{
        var path = activeDocument.path;
        }catch(e){
            alert("This document has not been saved");
            return;
            }
    if(activeDocument.name.toString().toLowerCase().search(/_psd\.psd$/) == -1){
        alert("Filename is not in the correct format");
        return;
        }
    var fileName = activeDocument.name.toString().match(/[^_]*/);
    var savedState = activeDocument.activeHistoryState;
    doAction("savelarge","Action Set");
    //////////////////////////////////////////////////////////////////////
    SaveJPEG(File(path + "/" + fileName + "_large.jpg"),10);
    activeDocument.activeHistoryState = savedState;
    savedState = activeDocument.activeHistoryState;
    doAction("savesmall","Action Set");
    //////////////////////////////////////////////////////////////////////
    SaveJPEG(File(path + "/" + fileName + "_small.jpg"),10);
    activeDocument.activeHistoryState = savedState;
    };
    function SaveJPEG(saveFile, jpegQuality){
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality;
    activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);
    };
    
  • PowerCLI script for the deployment of virtual machines via the model using customizations comments

    Hello... I hope someone can give me a script that will do the following:

    (1) provision VMs in vCenter template (I need 125 + VMs created in the next day or two)

    (2) use the existing customizations of comments in vCenter

    (3) let me enter data warehouses available to be created on the virtual machines.  Example: I want that VMs on warehouses of specific data as LUN2, LUN5, LUN6, LUN12, LUN1, etc...  However, the script must have the ability to know when a data store is near the threshold of capacity, say 90%, so it can use one of the other warehouses available, identified in the script... similar to storage profiles.  We still have to adopt profiles storage but plan to do so once upgraded us to v5.1 in the next month or two.  We hope that this will help us keep our replicated LUN more organized during the use of SRM and copy to remote groups, our team of storage's configuration on 3PAR.


    Additional information: I will use 2 styles... Windows XP and Win7.  Their respective sizes are 40 and 60 GB due to all applications for stable DR.  Data warehouses are ea 500 GB.

    Please let me know if additional information is necessary... Thank you!!!

    Charles

    No, unfortunately you cannot specify a folder like this.

    You'll have to do a

    $folder = get-file-name WinXP

    New-VM-$folder file...

    Remove the line of New - VM WhatIf switch if you really want to start creating virtual machines.

  • How to connect a printer wireless to my XP laptop, the wizard does not allow wireless connections

    I have a Brother MFC-5895CW printer connected to my BT home hub and use it with success from other laptops with windows 7 of Mac operating systems.

    However, I am struggling to connect my XP Edition family Lap top.

    When I try to "add a printer" I don't get the option to install plug-and-play printers and therefore cannot find the printer that is already installed on my network wireless.

    Can someone please help.

    Thank you

    Paul

    Hello Paul,

    Thanks for posting in the Microsoft Community Forum, please be assured that we would do our best to help you with this problem.

    Here are some steps you can try:

    Method 1:

    Run the fixit of the printer and check:

    Diagnose and automatically fix problems printing and printer

    http://support.Microsoft.com/mats/printing_problems/en-us

    Method 2:

    Try to download the driver from the following link and check:

    See complete software & driver Package or Add Printer Driver Wizard (Microsoft WHQL certified*) from the following link:

    http://welcome.solutions.brother.com/BSC/public/us/us/en/DLF/download_index.html?reg=us&c=us&lang=en&prod=mfc5895cw_us_eu&dlid=&flang=English&OS=7&type2=-1

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    For further reference:

    To connect to a printer on a network

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/print_connect_net_printerw.mspx?mfr=true

    Resources for the resolution of the printer in Windows XP problems

    http://support.Microsoft.com/kb/308028

    Hope this information helps. If you have any questions do not hesitate to answer, we would be happy to help.

  • Need a script Powershell inventory VM

    Hello

    Need a script powershell to collect them below, has held information from the virtual Center.

    vmname | Name of ESX. Memory (GB) | County of vCPU | vNIC County | IP address (all) | VMDK (s) size (GB) | Total size (GB) vmdk | Name of the data store. The Tools version. to update the tools | actions | Reservations (MB) | Limit (MB) | County snapshot | Guest operating system

    VMDK (s) size (GB)-> need all size vmdk from the separated from the vm by ''. EX: for a virtual machine of 3 size vmdk 20,20, 10 GB each the output would be 2020 + 10

    The name of the data store-> name of the data store where the VMX.

    Update of the tools-> State of necessity as old or updates

    You will find the combined VM version of script 3 attached information. If you want only some of the fields, as in the VMX and VMDK script, you can use the Select-Object cmdlet to select only the fields. The next oneliner will use the script Get-information - v3.ps1 to generate the output of the VMX and VMDK script:

    ./Get-VMInformation-v3.ps1 | Select-Object -property VMname,VMXName,VMDKName,VmdkSizeGB,TotalVmdkSizeGB,DatastoreName
    

    Robert

  • Need help with internet connection

    Hi I'm new to this forum, I need help. Recently I reformat my hard drive and also to recharge my windows XP OS. However, it cannot be connected to the internet. I have check and found that there is no connection of the network adapter on my laptop. I ask MS to help over the phone and was told to download the IE7 to try as I did, but my internet connection still does not work.  My router works like my other laptop is able to connect to the internet. Thank you for your help. Kind regards.

    Hello

    1 have had modifications made to your computer before the problem occurred?

    2. is it a laptop or desktop?

    3. who is the manufacturer of the computer, and what is the model number of your computer?

    4. have you installed the latest network drivers on your computer?

    5. what security program is installed on your computer (Antivirus and firewall)?

    As there is no network adapter installed on your computer, I suggest to first download and install the drivers for the network adapters on your computer manufacturer Web site and check to see if that fixes the problem on your computer.

    If the question is limited to Internet Explorer I suggest you follow the troubleshooting steps in the following article.

    "Internet Explorer cannot display the webpage" error in Internet Explorer

    http://support.Microsoft.com/kb/956196

    I hope this information helps. Please get back to us if you have any other questions on this subject.

  • HP Officejet 7612: Also how wireless connect my laptop to my printer? (Already connected Dell desktop computer)

    I just bought a printer Officejet 7612.

    I have setup my Dell desktop (windows XP, ASUS router) with a wireless connection to the printer successfully.

    My Dell desktop computer is connected to the router via a cable ethernet ASUS.

    I thought that my laptop (Fujitsu T900, windows 7) would automatically see the printer; but it doesn't work.

    The laptop connects wireless to my ASUS router to access the Internet.

    For my laptop see the printer Officejet 7612 - do I also need to install the software suite Officejet 7612 whole on the laptop (as I already did on my desktop Dell computer)?

    Thank you once more!

    (I apologize in advance because this is probably a stupid question

    Hello @Scooby777,

    Welcome to the HP support forums.

    Certainly not a stupid question.

    The answer is: Yes, you need to install the software on all your devices.

    You can also choose to install the base drivers.

    Base drivers will give you all the features of the printer.

    If you need additional assistance, please let me know.

  • Unable to connect with desktop remotely

    With Windows 7 Pro, try connecting to office having same exact OS W7 pro, both machines are new Dell XPS 8700 s. I get message failed to connect as another 1.2.3 off voltage, i.e., cables etc bad machine. Not true because I can connect to the office with old laptop on XP machine. All other remote employees running W 7 pro can connect to their respective port passed from office machines. I tried every permutation in the desktop settings remotely. I disabled the firewall, checked the services, checked the Office remotely activate, checked the equipment completely but still unable to connect. Someone at - it a suggestions?

    Al

    Hello

    I apologize for the delay in response

    This query is better suited on the TechNet forums. The pros on this forum should be able to help with this query. So, I suggest you to post this query on the TechNet Windows 7 networking Forums by using this link:

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking%2Cw7itprosecurity%2Cw7itprohardware&filter=AllTypes&sort=lastpostdesc

    Hope this information was useful. Please get back to us with the results and if you need help or have questions about windows, we will be happy to help you.

  • Connection remote desktop has appeared in my Start menu, but I don't use it, does that mean someone else has had access?

    I sat down at my computer today (I'm the only person who uses it) and pulled the top of the start menu. There were four programs listed there that I have not used for several months:

    Remote Desktop connection
    Dreamweaver MX
    Freehand MX
    MS Office Picture Manager

    In my opinion, that means that someone had access to my system.

    Can I change my remote desktop connection to protect against this, or is a more complete analysis of my machine required?

    The remote desktop connection settings include providing everyone the read and Read & Execute access. If I remove these options that will make me safer? Skype uses this access (this is the only thing that could, I think I use)?

    I went to system properties and remote access disabled.

    Windows 7 Home Premium, Service Pack 1

    Hello

    Thanks for posting your query in Microsoft Community.

    According the information you have provided, I understand that you need information from remote desktop connection settings in Windows 7. I will certainly help you in this matter.

    Please visit the links.

    Remote Desktop connection

    http://Windows.Microsoft.com/en-in/Windows7/products/features/Remote-Desktop-connection

    What types of connections remote desktop should I allow?

    http://Windows.Microsoft.com/en-in/Windows7/what-types-of-Remote-Desktop-connections-should-i-allow

    If you face problems more when working with Windows Mail on the Microsoft Community Forum.

  • I can't connect my desktop PC to my wireless modem router

    Hi I am trying to go on the internet on my desktop computer via my wireless, I tried to add a new device but shows nothing to add. My wireless modem is in my kitchen for my office, but I'm willing to put my PC in my room and let gateway in kitchen HELP PLEASE

    Hi Smartin2012,

    Thanks for the reply.

    That you want to connect to the desktop to a wireless router. The computer must have wireless capability. To do this, you may need to buy a wireless network adapter to connect to a wireless router.

    To learn more about wireless devices, visit these links.

    http://Windows.Microsoft.com/en-us/Windows7/selecting-a-wireless-router-or-another-wireless-network-device

    http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-find-a-wireless-network

    http://Windows.Microsoft.com/en-us/Windows7/wireless-networking-frequently-asked-questions

    If you use a mobile broadband visit this link:

    http://Windows.Microsoft.com/en-us/Windows7/use-mobile-broadband-to-connect-to-the-Internet

    Using the windows-related issues feel free to post on Microsoft Community.

  • Need a script powercli on behalf of user ESXi servers list

    Need a script powercli on behalf of user ESXi servers list

    My mistake, try something like this

    $user = "root" $pswd = "password"
    
    Get-VMHost  | %{
      $esx = Connect-VIServer $_.Name -User $user -Password $pswd  Get-VMHostAccount -Server $esx |  Select @{N="Host";E={$esx.Name}},@{N="Uid";E={$_.ExtensionData.Id}},Id,@{N="Name";E={$_.ExtensionData.FullName}}
      Disconnect-VIServer -Server $esx -Confirm:$false}
    
  • Cannot connect Wifi IPad.  I've done all the suggested advice to Apple and it still does not connect.  I need help!

    I can't connect my wifi Ipad.  I tried to off suggestions for Apple.  Now I'm stuck in the IPad introduction after my hard stop and when I get to choose a network, it is not mine.  All other devices in the House are connected.  I can't get out of the set up mode to go into the settings and try to activate the wifi.  Suggestions?

    Because you cannot find your network, the SSID is hidden by the router? If so, you need to select other, and then enter the SSID and password yourself.

  • Can I connect my desktop HP TouchSmart 520-1070 PC to my TV?

    Can I connect my desktop HP TouchSmart 520-1070 PC to my TV?

    Here are the specifications of your desktop HP TouchSmart 520-1070 According to the specs, it seems that this model does not support the video output of any kind (DisplayPort, HDMI, DVI, VGA, etc.). Although it has no HDMI port on the right side, this port is strictly an entry for game consoles, and other video devices. To connect an external monitor to the computer takes longer and the use of an adapter USB-to-video, like the eVGA UV + UV39 or among many other video-to-USB adapters on the market.

    Please send Bravo

Maybe you are looking for