Jump to content


cravion

Established Members
  • Posts

    2
  • Joined

  • Last visited

cravion's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, For information, use custom scripts with return codes: http://technet.microsoft.com/en-us/library/gg682174.aspx Here is the VBS script that I created to verify the presence of a file in the user profile: '** Déclaration des variables Dim oFSO '** Déclaration des objets Set oFSO = CreateObject("Scripting.FileSystemObject") Set WshShellObj = WScript.CreateObject("WScript.Shell") Set WshProcessEnv = WshShellObj.Environment("Process") '** Affectation des variables UserProfile = WshProcessEnv("USERPROFILE") FileName = WScript.ScriptFullName Set InfoVbs = oFSO.GetFile(FileName) RepCourant = InfoVbs.ParentFolder 'Sans le "\" de la fin FichierFlag = UserProfile &"\AppData\Roaming\Test\FichierTesteur.txt" If oFSO.FileExists(FichierFlag) Then WScript.StdOut.Write "The application is installed" WScript.Quit(0) Else WScript.Quit(0) End If Bye
  2. Hi, I work with SCCM 2012 SP1 and I would like to create an application that deploy files in the user profile. However, I'm stuck on the detection method because I can not use the variable %USERPROFILE% or %USERNAME%. (view picture 1 and 2) However, SCCM knows other variables such as "%windir%" or "%ProgramFiles%" (view picture 3) Someone has an idea
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.