NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

@title = PS URLs change tool
@Echo *****************************************************************
@echo * *
@echo * Seclore Technology Pvt Ltd *
@echo * PS URLs change tool *
@echo * Version 1.2 *
@echo * *
@echo *****************************************************************



@echo off
:CheckOS
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

:64BIT
echo Cheking registry for DC client(64 bit client) ...

@reg query "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureDesktop Client" /ve > nul
:echo %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :DcAbsent
IF ERRORLEVEL 0 GOTO :runreg64

:runreg64
echo " Machine is 64 bit.
rem The rest of your code goes here
rem Windows Registry 64 Editor Version 5.00

:echo "What is your policy server URL? ie.https://seclore/policyserver"

:set /p url=
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureProductInfo" /f /v "BaseURL" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade"
:echo %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :saynoaccess
IF ERRORLEVEL 0 GOTO :goahead64

:goahead64
echo "ProductInfo URL has been updated"

echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureProductInfoComponentsSeclore.FileSecure.DC.Addon" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/addon"
echo "Seclore.FileSecure.DC.Addon URL has been updated
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureProductInfoComponentsSeclore.FileSecure.DC.Core" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/core"
echo "Seclore.FileSecure.DC.Core URL has been updated"
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureProductInfoComponentsSeclore.FileSecure.DC.Customization" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/customization"
echo "Seclore.FileSecure.DC.Customization URL has been updated"
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureProductInfoComponentsSeclore.FileSecure.UpgradeManager" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/um"
echo "UpgradeManager URL has been updated"

echo.
echo.
taskkill /f /im fsdctray.exe
@reg query "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureDesktop Client" /v "PrimaryServer" /t REG_SZ > nul
:echo %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :END
IF ERRORLEVEL 0 GOTO :ADDPPS64

:ADDPPS64
@reg add "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeSecloreFileSecureDesktop Client" /f /v "PrimaryServer" /t REG_SZ /d https://irm.seclore.com/policyserver"
echo "Desktop Client Policy server URL has been updated"
echo.
echo.
echo PS URLs have been successfully changed.
:msg %username% PS URLs have been successfully changed.
:pause
:msg %username% Closing FileSecure Desktop client
:taskkill /f /im fsdctray.exe
:pause
:msg %username% Kindly open FileSecure Desktop Client tray and check Policy Server profile.
:fsdctray.exe
start "" "%fsdccore%/fsdctray.exe"
Exit

:32BIT
echo Cheking registry for DC client (32 bit client)...
@reg query "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureDesktop Client" >nul
:echo %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :DcAbsent
IF ERRORLEVEL 0 GOTO :runreg32

:runreg32
echo " Machine is 32 bit.
rem The rest of your code goes here
rem Windows Registry32 Editor Version 5.00
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureProductInfo" /f /v "BaseURL" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade"
:echo %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :saynoaccess
IF ERRORLEVEL 0 GOTO :goahead32

::saynoaccess
:@echo You do not have admin access. Please run this script with admin privilege
:msg %username% You do not have admin access. Please run this script with admin privilege.
:pause
EXIT

:goahead32
echo "ProductInfo URL has been updated"

echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureProductInfoComponentsSeclore.FileSecure.DC.Addon" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/addon"
echo "Seclore.FileSecure.DC.Addon URL has been updated
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureProductInfoComponentsSeclore.FileSecure.DC.Core" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/core"
echo "Seclore.FileSecure.DC.Core URL has been updated"
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureProductInfoComponentsSeclore.FileSecure.DC.Customization" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/customization"
echo "Seclore.FileSecure.DC.Customization URL has been updated"
echo.
echo.
@reg add "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureProductInfoComponentsSeclore.FileSecure.UpgradeManager" /f /v "Url" /t REG_SZ /d "https://irm.seclore.com/policyserver/upgrade/dc/um"
echo "UpgradeManager URL has been updated"
echo.
echo.
taskkill /f /im fsdctray.exe
@reg query "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureDesktop Client" /v "PrimaryServer" > nul
:echo %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO :END
IF ERRORLEVEL 0 GOTO :ADDPPS32

:ADDPPS32
@reg add "HKEY_LOCAL_MACHINESOFTWARESecloreFileSecureDesktop Client" /f /v "PrimaryServer" /t REG_SZ /d "https://irm.seclore.com/policyserver"
echo "Desktop Client Policy server URL has been updated"

echo.
echo.
echo PS URLs have been successfully changed.
:msg %username% PS URLs have been successfully changed.
:pause
:msg %username% Closing FileSecure Desktop client
:taskkill /f /im fsdctray.exe
:pause
:msg %username% Kindly open FileSecure Desktop Client tray and check Policy Server profile.
:fsdctray.exe
start "" "%fsdccore%/fsdctray.exe"
exit

:saynoaccess
@echo you do not have admin access. Please run this script with admin privilege.
:msg %username% You do not have admin access. Please run this script with admin privilege.
pause
EXIT

:DcAbsent
echo.
echo.
echo This machine do not have DC client. Please install it and re run this script.
:msg %username% This machine do not have DC client. Please install it and re run this script.
pause
exit
GOTO END


:END
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.