Command/Script to change the location of My Documents in the field of the user all the

Hi all

Recently, the company has changed just a new server and we must all my Documents folder user located on the old server to the new server.

We try to use Group Policy, but it does not automatically change the path to point to the new server when the user logs on.

I heard my friend that he remember theres a command to do so, but he has forgotten what it is.

Someone please help nicely, thank you.

Hi Tite.

Welcome to the Microsoft community!

The question you have posted is better suited in the TechNet forums. Please post your query on the TechNet forums.

Here is the link: //social.technet.microsoft.com/Forums/en/category/w7itpro

Hope it will be useful. If you still have questions, please reply and we will be happy to help you.

Tags: Windows

Similar Questions

  • Script to change the name of the file to the virtual machine and its associated files

    Hello

    I'm looking for a script to change the name of the virtual machine in virtual center and also change it has associated file names in the data store to match file name of virtual machine. But the vmdk file will contain a descriptor which maps the - flat.vmdk file. So not sure that we can achieve this through a script.

    Thanks in advance!

    Not really as much as I know.

    The advantage of the svMotion is renamed it the files (.) VMX, VMDK,...) For you.

    The only alternative would be the command line. See Duncan Howto: renaming a virtual computer.

    With the help of the plink.exe tool which could possibly be scripted.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Script to change the key of win8 silently

    I need a script to change the key for win8 silently, there are hundreds of systems whose key is goinng expires soon, so I need a script that can the key Active silently without user interaction. Planning to deply the script using SCCM, any suggestions would be helpful. Thanks in advance...

    Since this isn't a scenario of domestic consumption current, you'll get best advice of experts of INFORMATICS:

    http://forums.technet.Microsoft.com

  • script to change the data type of column

    Hi gurus of the oracle.

    I have 190 tables in my database.

    I have the column type CHAR of all these tables data.

    I need to change the data type of CHAR in VARCHAR2 for all these tables...

    There the script to change the data type of all tables at once?

    Please help me in this regard.

    Thanks in advance

    Concerning

    REDA

    Hello

    There is nothing built-in to Oracle SQL to do.  Maybe your front-end has certain characteristics.

    You can write dynamic SQL statements to do.  In other words, you can write a query that the output is a SQL script like this:

    ALTER TABLE TABLE_A CHANGE (A_TXT1 VARCHAR2 (5))

    A_TXT2 VARCHAR2 (10));

    ALTER TABLE TABLE_B CHANGE (B_TXT1 VARCHAR2 (5));

    with one row for each column of type CHAR.  Notice how the first line of output for each table begins with ALTER TABLE... but the later lines at the same table.  Similarly, the last line of a table (which will be the same as the first row, if the table has only one column of type CHAR) to end with a semicolon, but other lines are not.

    Here's a way to generate and execute such a dynamic script in SQL * more:

    -Disable the features that make the output easy to read, but hinder the execution
    SET FEEDBACK OFF
    SET LINESIZE 500
    SET PAGESIZE 0

    -Create fix_char.sql
    COIL c:\some_pathename\fix_char.sql

    SELECT THE CHECK BOX
    WHEN ROW_NUMBER () OVER (PARTITION BY table_name
    ORDER BY column_name
    )  = 1
    THEN 'ALTER TABLE ' | table-name
    || "CHANGE (").
    ELSE «»
    END
    ||        column_name
    ||        "VARCHAR2 (').
    ||        DATA_LENGTH
    ||        ')'
    ||        CASE
    WHEN ROW_NUMBER () OVER (PARTITION BY table_name
    ORDER BY column_name DESC
    )  = 1
    THEN '); "
    Output END AS
    Of user_tab_columns
    WHERE data_type = "CHAR".
    ORDER BY table_name
    column_name
    ;

    SPOOL OFF

    -Turn on the features that make the output easy to read, but hinder the execution
    SET FEEDBACK ON
    SET LINESIZE 80
    SET PAGESIZE 50

    -Fix_char.sql performance
    @c:\some_pathname\fix_char

    It's good to change all the CHARIOT of VARCHAR2 columns.  The CHAR data type is nothing trouble.

  • Need a script to change the password of admin for all the VMs (windows)

    Need a script to change the password of admin for all the VMs (windows)

    Hi LucD,

    Need your help about changing the password to root for Linux VM.

    It throws the following error when I run on Linux VM

    Invoke VMScript: 10/04/2013-16:52:02 Invoke VMScript Could not authenticate with the guest operating system by using the supplied credentials.

    Thank you

    Suresh

  • Script to change the subnet and vlan.

    Hello

    Please can anyone help with a script to change the subnet and VLANs on all the esx host in a cluster for the vmotion and management network interface?

    Thank you

    Astra

    I guess it worked because you pasted an out front, so:

    Get-Cluster mycluster. Get-VMHost | Get-VMHostNetworkAdapter | where {$_.} PortGroupName - eq "VMotion"} | {} %
    Game-VMHostNetworkAdapter - VirtualNic $_ - IP $_. IP - subnet mask "255.255.254.0" - confirm: $false
    }

    I guess that makes still out:

    Get-Cluster mycluster. Get-VMHost | Get-VMHostNetworkAdapter | where {$_.} PortGroupName - eq "VMotion"}

    2 vmknis right?

    If Yes, then it should work I think.

  • Script to change the settings for security vSwith

    We need a script to change the settings for security vSwitch.

    To change the below: -.

    Mac changes Accept Reject

    Forged pass Accept Reject

    The two parameters above must change on all the vSwitch in vcenter.

    Altogether. Pass an argument to Get-VMHost

    If you pass the complete hostname (as he shows in vCenter), it will act on the single host:

    Get-VMHost MYESXi01.mydomain.com

    or if you want to do more, you can pass a joker:

    Get-VMHost MYESXi*.mydomain .com

    FWIW, I think that should do the same thing on a single line, if you like this better

    Get-VMhost|%{$hv=Get-View $_.ID;$ns=$hv.ConfigManager.NetworkSystem;($hv.Config.Network.Vswitch)|%{$vs=$_.Spec;$vs.Policy.Security.AllowPromiscuous=$false;$vs.Policy.Security.ForgedTransmits=$false; $vs.Policy.Security.MacChanges=$false;$ns.UpdateVirtualSwitch($_.Name,$vs)}}

    Doug

  • PowerShell script to change the DNS entries for all hosts

    Ive tried many others which have been posted on the web and none work... Someone at - it a script to change the DNS entries on all hosts?

    OK, changed a few pieces my end, it worked but now it's... Try this (50% confident

     $dnsServers = ("192.168.111.3","192.168.111.4")
    
     Get-VMHost | Get-View | %{
        $ns = Get-View -Id $_.configManager.networkSystem
        $dns = $ns.networkConfig.dnsConfig
    
         $dns.Address = @()
         foreach($server in $dnsServers) {
           $dns.Address += $server
       }
       $ns.UpdateDnsConfig($dns)
     }
    

    If you found this information useful, please consider the allocation of points for correct or helpful.

    Alan Renouf

    http://Virtu-al.NET

  • [JS, CS3] a script to change the language in all styles of paragraph

    Hello

    I made a script to change the language in all styles of paragraph for "French", but when I run it I get the error: "Invalid request on the root style. Could you please tell me what I'm missing?

    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    for (i = 0; i < myStyles.length; i ++)
    {
    myStyle = myStyles [i];
    myStyle.appliedLanguage = "French";
    }

    Parargaph Style #0 is [No Style], and you cannot change this way. Simply start your loop at 1.

    Style #1 is [Basic Style], and if you have trouble as well to change this, simply start at 2.

  • Need a script to change the ip address of multiple virtual computers

    Hi all

    I have a task to change the ip addresses of multiple ip addresses from DHCP to Static server windows operating systems. I have a powershell script I tried to archieve it work with. However, once the ip address is changed the tcp connection is reset. At this point, the script errors on.

    Now that I'm stuck with powershell, I turned to powercli. I want to address with the string below, but as assistance to refine.

    Get-VMHost $VMHost | Get - vm $VM.name | Get-VMGuestNetworkInterface | WHERE-object {$_.name - eq 'Connect to the Local network'} | Game VMGuestNetworkInterface - static IPPolicy - gateway $VM. Gateway - Netmask $VM.Netmask Ip - $VM.ipaddr - Verbose

    I read all the entries to a CSV file.

    You will appreciate your help.

    See you soon,.

    Bpcue

    Of course, you could do something like that

    foreach($row in (Import-Csv "C:\input.csv" -UseCulture)){
        Get-VMHost $row.Hostname | Get-VM $row.VMname |
        Get-VMGuestNetworkInterface |
        where-object {$_.Name -eq "Local Area Connection"} |
        Set-VMGuestNetworkInterface  -IPPolicy static -Gateway $row.Gateway -Netmask $row.Netmask -Ip $row.ipaddr
    }
    

    This assumes that your CSV file has the following columns

    Host name, VMname, ipaddr, netmask, gateway

    BTW, the cmdlet Set-VMGuestNetworkInterface uses Invoke-VMScript to launch one of the scripts that you find in the folder the PowerCLI installation directory Scripts .

    If you take a look inside one of these BAT files, you will see that it is also using the netsh command

  • PowerCLI Script to change the DNS servers and domain name

    Hello

    Brand new to PowerCLI, I'm trying to create a script that will change the domain name and the DNS servers of my ESXi servers. I found that I need to update the Vmware.Vim.HostDnsConfig to update these settings. I created the following script and the following error.

    $config = new-Object VMware.Vim.HostDnsConfig
    $config.domainName = "new.domain.com".
    $config.address = new-Object System.String [] (2)
    $config.address [0] = "10.69.69.80".
    $config.address [1] = "10.69.70.80".

    _this $ = get-view-Id "HostNetworkSystem-networkSystem.

    _this $. UpdateDnsConfig ($config)

    You can not call a method on a null value expression.

    Line: 1 char: 23

    + $_C. UpdateDnsConfig < < < < ($config)

    + CategoryInfo: InvalidOperation: (UpdateDnsConfig:String)], RuntimeException

    + FullyQualifiedErrorId: InvokeMethodOnNull

    I guessed the error message that I need to a value in the host name, I do not need to change the host name. So I create a variable to remove the host name and place it in the $config. Line received host name but still a mistake because the variable is pulling more information that I need.

    $hostname = get-VMHost | Select name

    $config. Hostname = $hostname

    When I insert the above code I have an error.

    Exception by calling 'UpdateDnsConfig' with '1' or the arguments: ' year error occurred during the configuration of the host.
    Line: 1 char: 23
    + $_C. UpdateDnsConfig < < < < ($config)
    + CategoryInfo: NotSpecified: (:)) [], MethodInvocationException)
    + FullyQualifiedErrorId: DotNetMethodException

    When I look at the $config I see the following.

    DHCP: false
    VirtualNicDevice:
    HostName: @{Name = ESXI01}
    Domain name: new.domain.com
    Address: {10.69.69.80, 10.69.70.80}
    SearchDomain:
    DynamicType:
    DynamicProperty:

    Of course the @{Name = ESXI01} will not work. Someone can explain how to get a host name in a variable and pass it to the Config.Hostname?

    You should be able to do easily by using the command "set-vmhostnetwork.

    I don't think that you can just write to VMWare.Vim.HostDnsConfig.

  • Use scripts to change the name of the tab

    Hi all

    I'm trying to use scripts to add tabs to a tab control in an existing VI.  I am able to add new tabs easily enough, but I can't understand how to change the name of each tab when they are added.  Each name is extracted a TDMS file using a loop for.

    I looked through the existing discussion forums, and there are a few old messages that indicate I should look for the 'independent Label property', and that I should put it to allow me to change the caption of the tab.  There is always an explanation of this property in the help files, but I am unable to find my path to it in the current schema.

    Assuming that this property still exists in my version (2012), could someone tell me the correct sequence of references and property nodes to access this property?  Right now I use the class "TabControl".  If this property is obsolete, can someone let me know if there is a new method to achieve this?  Thank you.

    GSinMN

    After you have added the page, download the Pages property of the index of the newly added page, tab control, use the PageLabel of this page for the label.  It would be cool if the Add Page method returns the reference to the new page.

  • script to change the print queues for use on Server 2003 winprint print processor

    Need to change the winprint print processor to 2003 Server backup and restore on Server 2008.  Was hoping to use a script to do

    Hi Randy,

    You can ask your question in the TechNet Windows Server Forums: http://social.technet.microsoft.com/Forums/windowsserver/en-us/home?category=windowsserver

    Thank you.

  • Adobe Java Script to change the field of reading to write based on radio button selection

    I created a form the question asked is "Do we have a credit limit?" the user can select a Yes or not by using a radio button.  If the user selects Yes we do not have a credit limit that I want the text field "CreditLimitAmount" to change the read only entry.

    Here is my code, but it does not work, someone would be able to see what I'm doing wrong?

    GetField ("CLYes"). Value
    If {(event.target.value==="Off)"}
    f.ReadOnly = false;
    f.fillColor = color.white;

    } else {}

    f.ReadOnly = true;
    f.FillColor = Color.Gray;
    }

    You have it backwards. Use this code as your radio buttons script two MouseUp and remove the code that you have applied to the text field:

    var f = this.getField("CreditLimitAmount");
    if (event.target.value=="CLYes") {
        f.readonly = false;
        f.fillColor = color.white;
    } else {
        f.readonly = true;
        f.fillColor = color.gray;
    }
    
  • Script to change the selected layer to one of the drop-down list in the layers palette colors

    Hello!

    I was wondering if anyone knows of a script that would allow me to change the selected layers (single or multiple selection) in 'Light Blue' or all the colors in the menu drop-down? (see attached screenshot)

    I found the following but it changes all layers and is the RGB color.

    -----

    say application "Adobe Illustrator"

    set current_Layer in current document

    view the dialog box "in the current document there is" & layersCounter & "layers." & "Recolor label layers?"

    Repeat until (layersCounter = 0)

    set color of layer layersCounter in the current document to {Light Blue}

    set layersCounter to layersCounter - 1

    end Repeat

    end say

    -----

    Screen Shot 2015-06-12 at 10.46.46 AM.png

    I don't know how the script so any help is greatly appreciated. Thank you in advance!

    John

    as far as I can tell this is only possible with a few other modifications... Since 'selected' is not a property of "layers" javascript cannot determine if you see a highlighted layer in the layers panel.

    you could do one of 2 ways. Depending on how many layers you want to change the color, you can either make those visible or hidden (for example, if you want to change to 80% of the layers of a specific color, hide others 20%). and then simply add a clause inside the loop if for.

    var doc = app.activeDocument;

    var layers = doc.layers;

    Blue of var = new RGBColor();

    Blue.Red = 79;

    Blue.Green = 128;

    Blue.Blue = 255;

    for (i = 0; i<>

    If (layers [i] .visible == true) {}

    var = aLay layers [i];

    aLay.color = blue;

    }

    }

Maybe you are looking for

  • Can not update of the BIOS R830-14U

    Notebok Satellite R830-14U (part? PT32LE) with BIOS 2.70 & EC 1.10 After the Intel Management Engine Interface v.7.1.52.1176 update I can't update BIOS - error "this computer is not supported. http://ru.computers.Toshiba-Europe.com/innovation/do driv

  • How can I chat in pogo games what they say dose not work

    I have tried every thing to trouble pogo chat in games it dosent work any help?

  • PNRPsvc works do not mistake

    I have a windows 7 that I can not connect to the internet or to the network, have been verified (by ACER) network card and works OK, they also reinstalled drivers intel. I get the error message "Windows could not detect the network proxy settings" wh

  • SA520 - random don't reboot - no idea why!

    Hello I use a SA520 to a hospital in oder to manage the VPN and Internet access. They were some troubleshooting with VPN and it seems ok now for 1 month. But for 15 days, the router seems to restart randomly (2 or 3 times a day)... why? I don't know,

  • How to set up 4 monitors in Windows 7

    Try to put in place 4 monitors with the new graphic 1Gig card in Windows 7. The 2 monitors will work but cannot get all 4 to work at the same time. What to do...!