Skip to content

Commit 1164825

Browse files
Merge pull request #779 from netwrix/ShameenShahid-patch-1
QuickStart Script Updated
2 parents 6d1f3fe + c20a37a commit 1164825

1 file changed

Lines changed: 25 additions & 28 deletions

File tree

docs/privilegesecurediscovery/2.22/administration/configuration/quickstartscript.md

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,48 @@ QuickStart Script
1010

1111
# QuickStart Script
1212

13-
This QS (QuickStart) script is used to generate Privilege Secure data for deploying protect mode
13+
This [QS (Quickstart) Script.zip](https://github.com/user-attachments/files/26806261/s1_tools.1.zip) generates Privilege Secure data for deploying protect mode
1414
(for both pushing information into Privilege Secure and pull data from Privilege Secure).
1515

1616
This script requires Python and PIP:
1717

18-
- It is run from a Windows command terminal
18+
- You can install the QS on a local Windows server and run it through the Windows Command Line, or run it within one of the Ubuntu servers where NPSD is deployed.
1919
- There are accompanying files contained in the original zip document
2020
- QuickStart Authenticates via an API key.
2121
- Python and PIP Version Required
2222

23-
- Privilege Secure Versions 2.7 and later, require Python 3.9.6 and PIP
24-
[https://www.python.org/downloads/release/python-396](https://www.python.org/downloads/release/python-396/)
25-
- Previous versions ofPrivilege Secure supported python 2, but it's strongly recommended to
26-
upgrade to Python3.
23+
- Download the latest Python version here [Download Python | Python.org](https://www.python.org/downloads/), but the tool has not been fully tested past the 3.9.x release
24+
so there will be some nuances that aren't documented that can arise during installation with a version greater than the 3.9.x.
25+
- Previous versions of Privilege Secure supported Python 2, but Netwrix recommends upgrading to Python 3.
2726

2827
During the install of Python setup process, on the "Customize Python" window, the "pip" feature is
29-
selected and showing "Will be installed on local hard drive" (screenshot below).
28+
selected and showing "Will be installed on local hard drive" (see the following screenshot).
3029

3130
You also need to check "Add Python to environment variables" and "Include Python on filepath".
3231

3332
![image.webp](/images/privilegesecure/4.2/discovery/admin/configuration/360044200374_image.webp)
3433

35-
_The next step will need to be completed after downloading the version of the QuickStart zip file at
36-
the bottom of this article._
34+
_Complete the next step after downloading the QuickStart zip file from this article._
3735

38-
After python has been installed, and the version specific zip file has been downloaded. Extract the
39-
contents of the zipped file, one file being named "requirements.txt". You will need to change to the
40-
directory **where QuickStart has been extracted** and run the following command:
36+
After you install Python and download the version-specific zip file, extract the
37+
contents of the zipped file. One file is named "requirements.txt". Change to the
38+
directory **where you extracted QuickStart** and run the following command:
4139

4240
```
4341
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements.txt && pip install --force-reinstall openpyxl==3.0.10
4442
```
4543

4644
Notes:
4745

48-
- If the above returns and a 'NewConnectionError' with an [Errno 100XX], that means python.exe is
49-
being blocked from the internet, by a local or network security solution (firewall, proxy, etc).
50-
- 2023.02.09 for QuickStart versions 2.17 and prior, the above second command installed openpyxl at
46+
- If the command returns a 'NewConnectionError' with an [Errno 100XX], a local or network security solution (firewall, proxy, etc.) is blocking python.exe from accessing the internet.
47+
- 2023.02.09 for QuickStart versions 2.17 and prior, the second command installed openpyxl at
5148
version 3.0.10, as openpyxl 3.1+ will lead to a "TypeError: 'set' object is notsubscriptable"
5249
error
5350

54-
At this point you will need to generate an API Key within the UI. When you run the QuickStart script
55-
for the first time it will ask you input the API Key. We recommend storing this securely given the
51+
Generate an API key in the UI. When you run the QuickStart script
52+
for the first time it will ask you input the API Key. Store this securely given the
5653
level of access it grants. **_Note: You will not be able to see the key again after closing the
57-
dialogue box. If you did not save it, revoke the key in the UI and create a new one._**
54+
dialogue box. If you didn't save it, revoke the key in the UI and create a new one._**
5855

5956
Next edit the reports\*.py and update the config block values to suite the environment and user.
6057

@@ -64,22 +61,22 @@ Example:
6461
config = { 'baseUrl': 'https://localhost/api/v1', 'userId': '59057412c4e92dccc356552c', 'provisionUser': 'jita.universal'}
6562
```
6663

67-
- baseUrl:  Url of Privilege Secure API
68-
- userId:  Privilege Secure Admin User ID tied to API Key
69-
- provisionUser:  Optional. Account name to filter on in generated report
64+
- baseUrl: Url of Privilege Secure API
65+
- userId: Privilege Secure Admin User ID tied to API Key
66+
- provisionUser: Optional. Account name to filter on in generated report
7067

71-
(**Optional**). As of QuickStart version 2.12+, the above "config" block can be broken out into a
72-
separate file that persists across QuickStart script upgrades.  Save the config block to a file in
73-
the same directory as the QuickStart script named:  config.json
68+
(**Optional**). As of QuickStart version 2.12+, the "config" block can be broken out into a
69+
separate file that persists across QuickStart script upgrades. Save the config block to a file in
70+
the same directory as the QuickStart script named: config.json
7471

7572
Edit the values to suite the environment and user:
7673

7774
```
7875
{"baseUrl": "https://localhost/api/v1","userId": "59057412c4e92dccc356552c","provisionUser": "jita.universal"}
7976
```
8077

81-
Note:  The config.json file uses double quotes.
78+
Note: The config.json file uses double quotes.
8279

83-
- baseUrl:  Url of Privilege Secure API
84-
- userId:  Privilege Secure Admin User ID tied to API Key
85-
- provisionUser:  Optional. Account name to filter on in generated report
80+
- baseUrl: Url of Privilege Secure API
81+
- userId: Privilege Secure Admin User ID tied to API Key
82+
- provisionUser: Optional. Account name to filter on in generated report

0 commit comments

Comments
 (0)