Jump to content

Search the Community

Showing results for tags 'remote server'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 2 results

  1. Hi everyone, Hope you are doing fine by the time being :/ Well, seems that I'm running into an issue while trying to add an Active domain security group to a remote computer that has a space in it. I've been searching for quite a while now and seems that my search did not get well. The ideal solution for me would be to use Psexec.exe as I can run it with my admin credentials whereas using WMIServices, I don't know how to launch that with these credentials. Here's what I wrote so far: $sADGroupName as a space in it and there's nothing I can do about, we have to respect a naming convention but it would be "Admins REMOTEMACHINENAME" Func f_AddADGroup2localAdmin() SplashTextOn("", "Adding " & $sADGroupName & " to the Local Administrators Group.", 1000, 100, -1, -1, 33, -1, -1, 700) $sCommand = $sResources & 'PsExec -accepteula \\' & $sServName & ' net localgroup Administrators MYDOMAIN\"' & $sADGroupName & '" /add' RunAsWait($sTechGID, "MYDOMAIN", $sTechPWD, 4, $sCommand, @SW_SHOW) SplashOff() ; f_MoveADObject() End Func What is weird is when I output the $sCommand variable, the space is in here but it seems not to be passed in my psexec command when I run it. Another thing I saw is that 4 times out of 10, psexec does not even launch. So I was also wondering if there could be another way to add the "spaced" group with my admin credentials on a remote server other than psexec. Thanks all in advance for the lights you may provide to me and keep safe! -31290-
  2. Hello from Barcelona. I'm working in a script that fills some pdf files with some strings of text. The main problem that I have is that the last and updated version of these files is in the server of our company. As some old files might get an update, I do always need to get the latest version of the files (just one single pdf for every time that the script is executed. I've been reading and surfing int he forum for examples for this kind of remote file copying, but none of them has worked for me. I know that I can acces to the server because thanks to one of those examples I can connect in a RDP conecction. The RDP connection script is this one: #include <GUIConstants.au3> #include <WindowsConstants.au3> #include <FileConstants.au3> #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> #include <AutoItConstants.au3> $oRDP = ObjCreate("MsTscAx.MsTscAx") $gui = GUICreate("RDP", 800, 800, 0, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) GUISetState(@SW_HIDE, $gui) $GUIActiveX = GUICtrlCreateObj($oRDP, 0, 0, 800, 800) GUICtrlSetStyle($GUIActiveX, $WS_VISIBLE) GUICtrlSetResizing($GUIActiveX, $GUI_DOCKAUTO) GUISetState() $oRDP.Server = "192.168.20.61" ;NetBIOS, DNS oder IP des Gerätes $oRDP.Domain = "FILESERVER" ;Anmeldedomäne (Rechnername oder NetBIOS Domänenname) $oRDP.UserName = "companyname1\user" ; Benutzername $oRDP.AdvancedSettings2.ClearTextPassword = "XXXXX-XXXXX-XXXXX" ; das Passwort dazu $oRDP.FullScreen = False ; Vollbild ja/nein - hat nichts mit der Auflösung zu tun $oRDP.AdvancedSettings2.RedirectDrives = True ; Sollen die Laufwerke mitgenommen werden $oRDP.AdvancedSettings2.RedirectPrinters = False ; Sollen die Drucker mitgenommen werden $oRDP.AdvancedSettings2.RedirectPorts = False ; Ports wie LPT1 etc $oRDP.AdvancedSettings2.RedirectSmartCards = False ; SmartCards für Authentifizierung $oRDP.ConnectingText = "Conectando ...." ; Text der erscheint bevor das Bild des Servers erscheint ; Nachfolgende Zeilen von eigenen Test's - ich musste mal das mit den "AdvancedSettings2" 3 4 etc. ausklingeln $oRDP.AdvancedSettings2.EnableAutoReconnect = True $oRDP.AdvancedSettings2.allowBackgroundInput = True $oRDP.AdvancedSettings2.ConnectionBarShowRestoreButton = True $oRDP.AdvancedSettings5.AudioRedirectionMode = 0 $oRDP.Connect() ObjEvent($oRDP, 'rdpevent_') Func rdpevent_OnLoginComplete() ConsoleWrite('loging complete' & @CRLF) ; copy() EndFunc ;==>rdpevent_OnLoginComplete Func copiar() $remoteclient = "192.168.20.61" $Domain = "FILESERVER" $Username = "companyname1\user" $Password = "XXXXX-XXXXX-XXXXX" ; Map X drive to \\myserver\stuff using current user ;DriveMapAdd("X:", "\\myserver\stuff") ;RunAsWait("companyname1\user","FILESERVER","XXXXX-XXXXX-XXXXX", 0, @ComSpec & ' /c ' & 'copy "\\192.168.20.61\X$\a.txt, "C:\Users\Mantenimiento\Desktop\"', "", @SW_HIDE) ; Map X drive to \\myserver2\stuff2 using the user "jon" from "domainx" with password "tickle" DriveMapAdd("X:", "A:", 0, "companyname1\user", "XXXXX-XXXXX-XXXXX") ConsoleWrite("error " & @error) EndFunc ;==>copiar While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete() Exit ;==> Doing this I get this GUI with the Remote Computer: The folder with the pdf files is the one marked. Looking at the remote computer hard disk drives folder I get this: The hdd where the pdf files are is a Network location. I don't know if this is a problem to get the files copied from the remote computer to the local one. I have zero knowledge about networks. Any idea or help would be really apreciatted.
×
×
  • Create New...